summaryrefslogtreecommitdiff
path: root/src/tree_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree_map.h')
-rw-r--r--src/tree_map.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/tree_map.h b/src/tree_map.h
index ddda6ac54..0b78504f0 100644
--- a/src/tree_map.h
+++ b/src/tree_map.h
@@ -40,13 +40,11 @@ enum TreeType {
* 5 entries instead of 4 (as there are only 4 landscape types) as the sub tropic landscape
* got two types of area, one for normal trees and one only for cacti.
*/
-enum {
- TREE_COUNT_TEMPERATE = TREE_SUB_ARCTIC - TREE_TEMPERATE, ///< number of treetypes on a temperate map
- TREE_COUNT_SUB_ARCTIC = TREE_RAINFOREST - TREE_SUB_ARCTIC, ///< number of treetypes on a sub arctic map
- TREE_COUNT_RAINFOREST = TREE_CACTUS - TREE_RAINFOREST, ///< number of treetypes for the 'rainforrest part' of a sub-tropic map
- TREE_COUNT_SUB_TROPICAL = TREE_TOYLAND - TREE_SUB_TROPICAL, ///< number of treetypes for the 'sub-tropic part' of a sub-tropic map
- TREE_COUNT_TOYLAND = 9 ///< number of treetypes on a toyland map
-};
+static const uint TREE_COUNT_TEMPERATE = TREE_SUB_ARCTIC - TREE_TEMPERATE; ///< number of treetypes on a temperate map
+static const uint TREE_COUNT_SUB_ARCTIC = TREE_RAINFOREST - TREE_SUB_ARCTIC; ///< number of treetypes on a sub arctic map
+static const uint TREE_COUNT_RAINFOREST = TREE_CACTUS - TREE_RAINFOREST; ///< number of treetypes for the 'rainforrest part' of a sub-tropic map
+static const uint TREE_COUNT_SUB_TROPICAL = TREE_TOYLAND - TREE_SUB_TROPICAL; ///< number of treetypes for the 'sub-tropic part' of a sub-tropic map
+static const uint TREE_COUNT_TOYLAND = 9; ///< number of treetypes on a toyland map
/**
* Enumeration for ground types of tiles with trees.