summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-03-02 02:22:15 +0000
committerDarkvater <Darkvater@openttd.org>2006-03-02 02:22:15 +0000
commit40405368d52b0d1ab71145620a4e6ea94f451e5e (patch)
tree83f0af63da1e12c0be0c89dc17b1f1167d857ae3 /misc.c
parent5f220ff0e26ec1fd1985b8b4e6a1609369aa7459 (diff)
downloadopenttd-40405368d52b0d1ab71145620a4e6ea94f451e5e.tar.xz
(svn r3726) - [6/6] Finalize conversion, finally save the patches struct.
- Remove the temporary synchronisation in during the map-transfer as this is no longer needed - The saved patches work just like the saved gameoptions. You have a _patches and a _patches_newgame struct. The _patches_newgame struct contains the values from the configuration file and thus the defaults for new games. When a new game is started or an older game is loaded, the default values are copied over to _patches to be used. When you load a game that has PATS saved, the default values are also loaded, but immediately overwritten by the values from the savegame. This ensures that player-based values are always taken from your personal preferences. - The current implementation also changes the default values if you change player-based settings in the game. For example changing window_snap_radius in a certain game will also change it for all next OpenTTD sessions. - The savegame version has been increased to 22. - The last 6 orso patches close the following reports: [ 1366446 ] different names for patches: all patch settings have the same name as in the configuration file and are reachable from the console. [ 1288024 ] Strange string on OTTD initial screen: configuration (and this includes patches) inputs are validated and clamped to their minimum/maximum values. [ 1423198 ] Make "Signals on Drive side" player, not server, based: this is only visual so current setting is to save it with the savegame but not synchronise in multiplayer. [ 1208070 ] Patches and New GRF options saved: apart from newgrf this is done
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 0bfbf9a76..542fd573e 100644
--- a/misc.c
+++ b/misc.c
@@ -191,6 +191,8 @@ void GenerateWorld(int mode, uint size_x, uint size_y)
// Make sure everything is done via OWNER_NONE
_current_player = OWNER_NONE;
+ UpdatePatches();
+
_generating_world = true;
InitializeGame(mode == GW_RANDOM ? 0 : IG_DATE_RESET, size_x, size_y);
SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0);