summaryrefslogtreecommitdiff
path: root/src/map_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map_type.h')
-rw-r--r--src/map_type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map_type.h b/src/map_type.h
index 7098ad762..3c403c88b 100644
--- a/src/map_type.h
+++ b/src/map_type.h
@@ -50,6 +50,14 @@ struct TileIndexDiffC {
int16 y; ///< The y value of the coordinate
};
+/** 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
+};
+
/**
* Approximation of the length of a straight track, relative to a diagonal
* track (ie the size of a tile side).