summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-20 09:32:32 +0000
committertruelight <truelight@openttd.org>2004-08-20 09:32:32 +0000
commit788ace088d8b3ba2afd77a8b21b532abc40d9eba (patch)
tree493248c0850e836b9a0d35c0fdddf9673b2a01b3 /ttd.c
parent80b1e25b6ce190a773ab9fe50927a983c8f2d038 (diff)
downloadopenttd-788ace088d8b3ba2afd77a8b21b532abc40d9eba.tar.xz
(svn r85) -Add: initial commit of new AI (enable in Patch menu)
-Add: generalised A* Algorithm -Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index 6f5a1d22c..73966b8c1 100644
--- a/ttd.c
+++ b/ttd.c
@@ -20,6 +20,7 @@
#include "hal.h"
#include "airport.h"
#include "saveload.h"
+#include "ai.h"
#include <stdarg.h>
@@ -429,6 +430,7 @@ void SetDebugString(const char *s)
_debug_spritecache_level = v;
_debug_misc_level = v;
_debug_grf_level = v;
+ _debug_ai_level = v;
}
// individual levels
@@ -445,6 +447,7 @@ void SetDebugString(const char *s)
if IS_LVL("misc") p = &_debug_misc_level;
else if IS_LVL("spritecache") p = &_debug_spritecache_level;
else if IS_LVL("grf") p = &_debug_grf_level;
+ else if IS_LVL("ai") p = &_debug_ai_level;
else {
ShowInfoF("Unknown debug level '%.*s'", s-t, t);
return;