diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 09:44:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 09:44:44 +0000 |
commit | 398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch) | |
tree | 54de30f4702263ee1489af162d6da840e35c0a87 /src/genworld.h | |
parent | 793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff) | |
download | openttd-398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb.tar.xz |
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/genworld.h')
-rw-r--r-- | src/genworld.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/genworld.h b/src/genworld.h index a4399097e..a32cf2115 100644 --- a/src/genworld.h +++ b/src/genworld.h @@ -15,17 +15,16 @@ #include "company_type.h" /** Constants related to world generation */ -enum { +enum LandscapeGenerator { /* Order of these enums has to be the same as in lang/english.txt * Otherwise you will get inconsistent behaviour. */ LG_ORIGINAL = 0, ///< The original landscape generator LG_TERRAGENESIS = 1, ///< TerraGenesis Perlin landscape generator - - GENERATE_NEW_SEED = UINT_MAX, ///< Create a new random seed - - GENWORLD_REDRAW_TIMEOUT = 200, ///< Timeout between redraws }; +static const uint GENERATE_NEW_SEED = UINT_MAX; ///< Create a new random seed +static const uint GENWORLD_REDRAW_TIMEOUT = 200; ///< Timeout between redraws + /** Modes for GenerateWorld */ enum GenWorldMode { GWM_NEWGAME = 0, ///< Generate a map for a new game |