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 /pathfind.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 'pathfind.c')
-rw-r--r-- | pathfind.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pathfind.c b/pathfind.c index 1e724c632..961042f20 100644 --- a/pathfind.c +++ b/pathfind.c @@ -533,7 +533,7 @@ static bool NtpVisit(NewTrackPathFinder* tpf, TileIndex tile, DiagDirection dir, // allocate a link. if out of links, handle this by returning // that a tile was already visisted. if (tpf->num_links_left == 0) { - DEBUG(ntp, 1) ("[NTP] no links left"); + DEBUG(ntp, 1, "No links left"); return false; } @@ -567,7 +567,7 @@ static bool NtpVisit(NewTrackPathFinder* tpf, TileIndex tile, DiagDirection dir, /* get here if we need to add a new link to link, * first, allocate a new link, in the same way as before */ if (tpf->num_links_left == 0) { - DEBUG(ntp, 1) ("[NTP] no links left"); + DEBUG(ntp, 1, "No links left"); return false; } tpf->num_links_left--; @@ -735,7 +735,7 @@ start_at: // too long search length? bail out. if (si.cur_length >= tpf->maxlength) { - DEBUG(ntp,1) ("[NTP] cur_length too big"); + DEBUG(ntp, 1, "Cur_length too big"); bits = 0; break; } @@ -884,7 +884,7 @@ start_at: // out of stack items, bail out? if (tpf->nstack >= lengthof(tpf->stack)) { - DEBUG(ntp, 1) ("[NTP] out of stack"); + DEBUG(ntp, 1, "Out of stack"); break; } |