summaryrefslogtreecommitdiff
path: root/src/landscape.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 09:44:44 +0000
commit398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb (patch)
tree54de30f4702263ee1489af162d6da840e35c0a87 /src/landscape.h
parent793b0f0736ac543fb1f6a7e9a4bfd678891e7374 (diff)
downloadopenttd-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/landscape.h')
-rw-r--r--src/landscape.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/landscape.h b/src/landscape.h
index d505d6834..c2c20a4fe 100644
--- a/src/landscape.h
+++ b/src/landscape.h
@@ -15,10 +15,8 @@
#include "core/geometry_type.hpp"
#include "tile_cmd.h"
-enum {
- SNOW_LINE_MONTHS = 12, ///< Number of months in the snow line table.
- SNOW_LINE_DAYS = 32, ///< Number of days in each month in the snow line table.
-};
+static const uint SNOW_LINE_MONTHS = 12; ///< Number of months in the snow line table.
+static const uint SNOW_LINE_DAYS = 32; ///< Number of days in each month in the snow line table.
/** Structure describing the height of the snow line each day of the year
* @ingroup SnowLineGroup */