Index: src/settings_gui.cpp =================================================================== --- src/settings_gui.cpp (Revision 11563) +++ src/settings_gui.cpp (Arbeitskopie) @@ -826,9 +826,11 @@ bool disabled = false; // We do not allow changes of some items when we are a client in a networkgame - if (!(sd->save.conv & SLF_NETWORK_NO) && _networking && !_network_server) editable = false; - if ((sdb->flags & SGF_NETWORK_ONLY) && !_networking) editable = false; - if ((sdb->flags & SGF_NO_NETWORK) && _networking) editable = false; + if (_game_mode != GM_EDITOR) { + if (!(sd->save.conv & SLF_NETWORK_NO) && _networking && !_network_server) editable = false; + if ((sdb->flags & SGF_NETWORK_ONLY) && !_networking) editable = false; + if ((sdb->flags & SGF_NO_NETWORK) && _networking) editable = false; + } if (sdb->cmd == SDT_BOOLX) { static const int _bool_ctabs[2][2] = {{9, 4}, {7, 6}}; @@ -888,9 +890,11 @@ sd = page->entries[btn].setting; /* return if action is only active in network, or only settable by server */ - if (!(sd->save.conv & SLF_NETWORK_NO) && _networking && !_network_server) return; - if ((sd->desc.flags & SGF_NETWORK_ONLY) && !_networking) return; - if ((sd->desc.flags & SGF_NO_NETWORK) && _networking) return; + if (_game_mode != GM_EDITOR) { + if (!(sd->save.conv & SLF_NETWORK_NO) && _networking && !_network_server) return; + if ((sd->desc.flags & SGF_NETWORK_ONLY) && !_networking) return; + if ((sd->desc.flags & SGF_NO_NETWORK) && _networking) return; + } var = GetVariableAddress(patches_ptr, &sd->save); value = (int32)ReadValue(var, sd->save.conv); Index: src/players.cpp =================================================================== --- src/players.cpp (Revision 11563) +++ src/players.cpp (Arbeitskopie) @@ -1108,9 +1108,6 @@ } fclose(fp); } - - /* Initialize end of game variable (when to show highscore chart) */ - _patches.ending_year = 2051; } /* Save/load of players */ Index: src/genworld.cpp =================================================================== --- src/genworld.cpp (Revision 11563) +++ src/genworld.cpp (Arbeitskopie) @@ -260,6 +260,9 @@ /* Set the date before loading sprites as some newgrfs check it */ SetDate(ConvertYMDToDate(_patches.starting_year, 0, 1)); + /* The player has got 101 years to get enough points for the highscore */ + _patches.ending_year = _patches.starting_year + 101; + /* Load the right landscape stuff */ GfxLoadSprites(); LoadStringWidthTable(); Index: src/openttd.cpp =================================================================== --- src/openttd.cpp (Revision 11563) +++ src/openttd.cpp (Arbeitskopie) @@ -1329,6 +1329,11 @@ /* from version 4.2 of the savegame, currencies are in a different order */ if (CheckSavegameVersionOldStyle(4, 2)) UpdateCurrencies(); + if (CheckSavegameVersionOldStyle(5, 1)) { + /* Set the runtime of oldgames to 101 years too */ + _patches.ending_year = _patches.starting_year + 101; + } + /* from version 6.1 of the savegame, signs have an "owner" */ if (CheckSavegameVersionOldStyle(6, 1)) UpdateSignOwner();