diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
commit | dc77647ea4a2becac4eff3190970cb35671b0131 (patch) | |
tree | d480693e848eb121add7037faa150875d750cc98 /src/console_cmds.cpp | |
parent | 26ee8f3ca10d1d277b5faaa8554b0a8305711664 (diff) | |
download | openttd-dc77647ea4a2becac4eff3190970cb35671b0131.tar.xz |
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 55c6017ed..25bdc78ad 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -926,8 +926,8 @@ DEF_CONSOLE_CMD(ConRestart) } /* Don't copy the _newgame pointers to the real pointers, so call SwitchMode directly */ - _patches.map_x = MapLogX(); - _patches.map_y = FindFirstBit(MapSizeY()); + _settings.game_creation.map_x = MapLogX(); + _settings.game_creation.map_y = FindFirstBit(MapSizeY()); SwitchMode(SM_NEWGAME); return true; } @@ -940,7 +940,7 @@ DEF_CONSOLE_CMD(ConGetSeed) return true; } - IConsolePrintF(CC_DEFAULT, "Generation Seed: %u", _patches.generation_seed); + IConsolePrintF(CC_DEFAULT, "Generation Seed: %u", _settings.game_creation.generation_seed); return true; } @@ -1083,7 +1083,7 @@ DEF_CONSOLE_CMD(ConExit) return true; } - if (_game_mode == GM_NORMAL && _patches.autosave_on_exit) DoExitSave(); + if (_game_mode == GM_NORMAL && _settings.gui.autosave_on_exit) DoExitSave(); _exit_game = true; return true; |