summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-01-06 21:57:37 +0000
committertruelight <truelight@openttd.org>2006-01-06 21:57:37 +0000
commitefd3d4210779d54a1434d71e08fa26b03478ef18 (patch)
treefd96410bf56810a2dd8d3cc1147612e1fee71db2 /openttd.h
parent10a2787fd595788567bb1c3860dd31f37f628361 (diff)
downloadopenttd-efd3d4210779d54a1434d71e08fa26b03478ef18.tar.xz
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
-Fix: [ FS#30 ] don't reset date in SE when pressing RandomLand (rewrote patch of MeusH, but Peter warned me I should put his name in, so... oh well)
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/openttd.h b/openttd.h
index 81ed0b908..f2ae7684e 100644
--- a/openttd.h
+++ b/openttd.h
@@ -93,6 +93,21 @@ enum SwitchModes {
SM_START_SCENARIO = 10,
};
+
+/* Modes for GenerateWorld */
+enum GenerateWorldModes {
+ GW_NEWGAME = 0, /* Generate a map for a new game */
+ GW_EMPTY = 1, /* Generate an empty map (sea-level) */
+ GW_RANDOM = 2, /* Generate a random map for SE */
+};
+
+/* Modes for InitializeGame, those are _bits_! */
+enum InitializeGameModes {
+ IG_NONE = 0, /* Don't do anything special */
+ IG_DATE_RESET = 1, /* Reset the date when initializing a game */
+};
+
+
typedef enum TransportTypes {
/* These constants are for now linked to the representation of bridges
* and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge