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 | 04628a1979f0ab8df4e78c0a57ca0d73381846be (patch) | |
tree | 8dae47833ded5c522ac7a89f69f10fc0c2530e90 /ai/trolly/pathfinder.c | |
parent | 08d0319f7c50fba3ea11071d7a781478438cbbab (diff) | |
download | openttd-04628a1979f0ab8df4e78c0a57ca0d73381846be.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 'ai/trolly/pathfinder.c')
-rw-r--r-- | ai/trolly/pathfinder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/trolly/pathfinder.c b/ai/trolly/pathfinder.c index c5ab35122..6ffdf1fec 100644 --- a/ai/trolly/pathfinder.c +++ b/ai/trolly/pathfinder.c @@ -200,14 +200,14 @@ static void AyStar_AiPathFinder_FoundEndNode(AyStar *aystar, OpenListNode *curre PathFinderInfo->route[i++] = parent->node.tile; if (i > lengthof(PathFinderInfo->route)) { // We ran out of space for the PathFinder - DEBUG(ai, 0)("[AiPathFinder] Ran out of space in the route[] array!!!"); + DEBUG(ai, 0, "No more space in pathfinder route[] array"); PathFinderInfo->route_length = -1; // -1 indicates out of space return; } parent = parent->parent; } while (parent != NULL); PathFinderInfo->route_length = i; - DEBUG(ai, 1)("[Ai-PathFinding] Found route of %d nodes long in %d nodes of searching", i, Hash_Size(&aystar->ClosedListHash)); + DEBUG(ai, 1, "Found route of %d nodes long in %d nodes of searching", i, Hash_Size(&aystar->ClosedListHash)); } |