summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-08 16:23:07 +0100
committerPatric Stout <github@truebrain.nl>2021-01-11 20:11:08 +0100
commit760b0cdc114864e2987a1e9c2b8369cea603a04e (patch)
tree52766049cb804f51bb093e777237b58d231f13a4 /src/openttd.cpp
parentff89f5f4c6deff65fab5f08f32e6d2bb07c7a632 (diff)
downloadopenttd-760b0cdc114864e2987a1e9c2b8369cea603a04e.tar.xz
Change: change console command "restart" and add "reload"
The current "restart" command is now called "reload", as that is what it does. The old "restart" command is now called "restart", as that is what it did. As this has not been in any official release yet, this shouldn't harm any kitten.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 805e591b9..9d28a3fe5 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1046,9 +1046,9 @@ void SwitchToMode(SwitchMode new_mode)
MakeNewEditorWorld();
break;
- case SM_RESTARTGAME: // Restart --> Current settings preserved
+ case SM_RELOADGAME: // Reload with what-ever started the game
if (_file_to_saveload.abstract_ftype == FT_SAVEGAME || _file_to_saveload.abstract_ftype == FT_SCENARIO) {
- /* Restart current savegame/scenario */
+ /* Reload current savegame/scenario */
_switch_mode = _game_mode == GM_EDITOR ? SM_LOAD_SCENARIO : SM_LOAD_GAME;
SwitchToMode(_switch_mode);
break;
@@ -1062,6 +1062,7 @@ void SwitchToMode(SwitchMode new_mode)
MakeNewGame(false, new_mode == SM_NEWGAME);
break;
+ case SM_RESTARTGAME: // Restart --> 'Random game' with current settings
case SM_NEWGAME: // New Game --> 'Random game'
if (_network_server) {
seprintf(_network_game_info.map_name, lastof(_network_game_info.map_name), "Random Map");