diff options
author | Berbe <4251220+Berbe@users.noreply.github.com> | 2019-03-05 05:04:39 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-09-24 19:17:18 +0200 |
commit | 8f3d1ec970520d5a7d775e173ca1df2dc6867686 (patch) | |
tree | cc1bbfe3dc779b15428e10ef7513e7a3ec8c2eda /src/openttd.h | |
parent | 3ad4a6e3dae62395be100ef44ea498f301ae98b1 (diff) | |
download | openttd-8f3d1ec970520d5a7d775e173ca1df2dc6867686.tar.xz |
Feature: Improve restart command
When the restart command is issued, a normal map is always spawned.
This improvement takes into account the current state of _file_to_saveload to check if a savegame/scenario/heightmap was previously loaded, and loads the same resource again.
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/openttd.h b/src/openttd.h index 6b7401cca..664963a5d 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -23,17 +23,18 @@ enum GameMode { /** Mode which defines what mode we're switching to. */ enum SwitchMode { SM_NONE, - SM_NEWGAME, ///< New Game --> 'Random game'. - SM_RESTARTGAME, ///< Restart --> 'Random game' with current settings. - SM_EDITOR, ///< Switch to scenario editor. - SM_LOAD_GAME, ///< Load game, Play Scenario. - SM_MENU, ///< Switch to game intro menu. - SM_SAVE_GAME, ///< Save game. - SM_SAVE_HEIGHTMAP, ///< Save heightmap. - SM_GENRANDLAND, ///< Generate random land within scenario editor. - SM_LOAD_SCENARIO, ///< Load scenario from scenario editor. - SM_START_HEIGHTMAP, ///< Load a heightmap and start a new game from it. - SM_LOAD_HEIGHTMAP, ///< Load heightmap from scenario editor. + SM_NEWGAME, ///< New Game --> 'Random game'. + SM_RESTARTGAME, ///< Restart --> 'Random game' with current settings. + SM_EDITOR, ///< Switch to scenario editor. + SM_LOAD_GAME, ///< Load game, Play Scenario. + SM_MENU, ///< Switch to game intro menu. + SM_SAVE_GAME, ///< Save game. + SM_SAVE_HEIGHTMAP, ///< Save heightmap. + SM_GENRANDLAND, ///< Generate random land within scenario editor. + SM_LOAD_SCENARIO, ///< Load scenario from scenario editor. + SM_START_HEIGHTMAP, ///< Load a heightmap and start a new game from it. + SM_LOAD_HEIGHTMAP, ///< Load heightmap from scenario editor. + SM_RESTART_HEIGHTMAP, ///< Load a heightmap and start a new game from it with current settings. }; /** Display Options */ |