summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-30 18:12:37 +0000
committertron <tron@openttd.org>2005-01-30 18:12:37 +0000
commit7526afdae028e4b3fb412ff86d0d172ea7193396 (patch)
treedacbdc31fb00804d67774d402514d356911380ad /ttd.c
parent5f05703206365850ad90e1483b18e6c6ad0068d4 (diff)
downloadopenttd-7526afdae028e4b3fb412ff86d0d172ea7193396.tar.xz
(svn r1737) Add DEBUG category "map" and use it to print the map size when allocating the map
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c2
1 files changed, 2 insertions, 0 deletions
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;