summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-04-11 19:53:44 +0000
committermatthijs <matthijs@openttd.org>2005-04-11 19:53:44 +0000
commitf5d9cb58ebd9780c0d1c256a15c93f1d5de636fb (patch)
tree7611935b4ef6a2c1d6cf921d2367db66bf73a1e3 /debug.c
parentb02dde198240a27f53ca196e1d9bdff89ca2edcf (diff)
downloadopenttd-f5d9cb58ebd9780c0d1c256a15c93f1d5de636fb.tar.xz
(svn r2182) - Add: [NPF] There is now a debug class for NPF. Use -d npf<level> to enable debugging printouts from npf.
- Codechange: [NPF] Removed NPF_MARKROUTE macro, to mark routes just specify a npf debugging level >= 1 on the commandline.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 99bf25145..025a182ea 100644
--- a/debug.c
+++ b/debug.c
@@ -13,6 +13,7 @@ int _debug_ms_level;
int _debug_net_level;
int _debug_spritecache_level;
int _debug_oldloader_level;
+int _debug_npf_level;
void CDECL debug(const char *s, ...)
@@ -48,7 +49,8 @@ void SetDebugString(const char *s)
DEBUG_LEVEL(ms),
DEBUG_LEVEL(net),
DEBUG_LEVEL(spritecache),
- DEBUG_LEVEL(oldloader)
+ DEBUG_LEVEL(oldloader),
+ DEBUG_LEVEL(npf)
};
#undef DEBUG_LEVEL