diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
commit | 073e0eb3c9148d6dd8b2c9ce788843b8180351cb (patch) | |
tree | 8dae47833ded5c522ac7a89f69f10fc0c2530e90 /newgrf_station.c | |
parent | 2e0bbe540383c96f4356dd75e70bb1fa5c8e95be (diff) | |
download | openttd-073e0eb3c9148d6dd8b2c9ce788843b8180351cb.tar.xz |
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'newgrf_station.c')
-rw-r--r-- | newgrf_station.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newgrf_station.c b/newgrf_station.c index 043fe113d..96e4f34be 100644 --- a/newgrf_station.c +++ b/newgrf_station.c @@ -12,6 +12,7 @@ #include "table/strings.h" #include "station.h" #include "station_map.h" +#include "newgrf.h" #include "newgrf_callbacks.h" #include "newgrf_station.h" #include "newgrf_spritegroup.h" @@ -74,7 +75,7 @@ StationClassID AllocateStationClass(uint32 class) } } - DEBUG(grf, 2)("StationClassAllocate: Already allocated %d classes, using default.", STAT_CLASS_MAX); + grfmsg(2, "StationClassAllocate: already allocated %d classes, using default", STAT_CLASS_MAX); return STAT_CLASS_DFLT; } @@ -390,7 +391,7 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by } } - DEBUG(grf, 1)("Unhandled station property 0x%X", variable); + DEBUG(grf, 1, "Unhandled station property 0x%X", variable); *available = false; return -1; |