(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user