1
0
Fork 0

Fix: CMD_CHANGE_SETTING did not reject SF_NO_NETWORK_SYNC settings (#11009)

pull/11011/head
Jonathan G Rennison 2023-06-14 18:44:10 +01:00 committed by GitHub
parent f51f117b00
commit 864d3c9c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -806,6 +806,7 @@ void IniSaveWindowSettings(IniFile &ini, const char *grpname, void *desc)
bool SettingDesc::IsEditable(bool do_command) const
{
if (!do_command && !(this->flags & SF_NO_NETWORK_SYNC) && _networking && !_network_server && !(this->flags & SF_PER_COMPANY)) return false;
if (do_command && (this->flags & SF_NO_NETWORK_SYNC)) return false;
if ((this->flags & SF_NETWORK_ONLY) && !_networking && _game_mode != GM_MENU) return false;
if ((this->flags & SF_NO_NETWORK) && _networking) return false;
if ((this->flags & SF_NEWGAME_ONLY) &&