summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-25 00:45:52 +0000
committeryexo <yexo@openttd.org>2009-02-25 00:45:52 +0000
commit3bb872e7dd8ec9318cd60bb9ca417b4d80f8fc34 (patch)
tree0821775e819b64e32e518cdd87b874fb720c4d92 /src/console_cmds.cpp
parent901230bde1b0752d97d63aabaa0fd38c9ea183e7 (diff)
downloadopenttd-3bb872e7dd8ec9318cd60bb9ca417b4d80f8fc34.tar.xz
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 0993bf47d..7f4463c2b 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -923,7 +923,7 @@ DEF_CONSOLE_CMD(ConNewGame)
return true;
}
-extern void SwitchMode(int new_mode);
+extern void SwitchToMode(SwitchMode new_mode);
DEF_CONSOLE_CMD(ConRestart)
{
@@ -933,10 +933,10 @@ DEF_CONSOLE_CMD(ConRestart)
return true;
}
- /* Don't copy the _newgame pointers to the real pointers, so call SwitchMode directly */
+ /* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
_settings_game.game_creation.map_x = MapLogX();
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
- SwitchMode(SM_NEWGAME);
+ SwitchToMode(SM_NEWGAME);
return true;
}