summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.c2
-rw-r--r--ttd.c2
-rw-r--r--variables.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/map.c b/map.c
index b04d8d4a9..a7b24e57b 100644
--- a/map.c
+++ b/map.c
@@ -21,6 +21,8 @@ void InitMap(uint log_x, uint log_y)
assert(log_x <= 15 && log_y <= 15);
+ DEBUG(map, 1)("Allocating map of size %dx%d", log_x, log_y);
+
_map_log_x = log_x;
_map_log_y = log_y;
diff --git a/ttd.c b/ttd.c
index 1abaab110..f4106fafd 100644
--- a/ttd.c
+++ b/ttd.c
@@ -448,6 +448,7 @@ void SetDebugString(const char *s)
_debug_grf_level = v;
_debug_ai_level = v;
_debug_net_level = v;
+ _debug_map_level = v;
}
// individual levels
@@ -466,6 +467,7 @@ void SetDebugString(const char *s)
else if IS_LVL("grf") p = &_debug_grf_level;
else if IS_LVL("ai") p = &_debug_ai_level;
else if IS_LVL("net") p = &_debug_net_level;
+ else if IS_LVL("map") p = &_debug_map_level;
else {
ShowInfoF("Unknown debug level '%.*s'", s-t, t);
return;
diff --git a/variables.h b/variables.h
index 71d70d7b3..f80e2e160 100644
--- a/variables.h
+++ b/variables.h
@@ -445,6 +445,7 @@ VARDEF int _debug_misc_level;
VARDEF int _debug_grf_level;
VARDEF int _debug_ai_level;
VARDEF int _debug_net_level;
+VARDEF int _debug_map_level;
/* Forking stuff */
VARDEF bool _dedicated_forks;