diff options
Diffstat (limited to 'src/map_type.h')
-rw-r--r-- | src/map_type.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map_type.h b/src/map_type.h index 44434e536..9c1d1c925 100644 --- a/src/map_type.h +++ b/src/map_type.h @@ -58,12 +58,10 @@ struct TileIndexDiffC { }; /** Minimal and maximal map width and height */ -enum { - MIN_MAP_SIZE_BITS = 6, ///< Minimal size of map is equal to 2 ^ MIN_MAP_SIZE_BITS - MAX_MAP_SIZE_BITS = 11, ///< Maximal size of map is equal to 2 ^ MAX_MAP_SIZE_BITS - MIN_MAP_SIZE = 1 << MIN_MAP_SIZE_BITS, ///< Minimal map size = 64 - MAX_MAP_SIZE = 1 << MAX_MAP_SIZE_BITS, ///< Maximal map size = 2048 -}; +static const uint MIN_MAP_SIZE_BITS = 6; ///< Minimal size of map is equal to 2 ^ MIN_MAP_SIZE_BITS +static const uint MAX_MAP_SIZE_BITS = 11; ///< Maximal size of map is equal to 2 ^ MAX_MAP_SIZE_BITS +static const uint MIN_MAP_SIZE = 1 << MIN_MAP_SIZE_BITS; ///< Minimal map size = 64 +static const uint MAX_MAP_SIZE = 1 << MAX_MAP_SIZE_BITS; ///< Maximal map size = 2048 /** * Approximation of the length of a straight track, relative to a diagonal |