summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-13 13:36:01 +0000
committerrubidium <rubidium@openttd.org>2008-01-13 13:36:01 +0000
commit5c4150d304242d224d5974f79d5461ff3090cea3 (patch)
treeec37405dba3eeb85aaeaa7e2ed2433812d3061d6 /src/ai
parentb0c34f4d6275a0dc1b8639b5529e37233240f6e2 (diff)
downloadopenttd-5c4150d304242d224d5974f79d5461ff3090cea3.tar.xz
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai.cpp3
-rw-r--r--src/ai/ai.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ai/ai.cpp b/src/ai/ai.cpp
index 07b31f77d..c6158b0c4 100644
--- a/src/ai/ai.cpp
+++ b/src/ai/ai.cpp
@@ -11,6 +11,9 @@
#include "ai.h"
#include "default/default.h"
+AIStruct _ai;
+AIPlayer _ai_player[MAX_PLAYERS];
+
/**
* Dequeues commands put in the queue via AI_PutCommandInQueue.
*/
diff --git a/src/ai/ai.h b/src/ai/ai.h
index 7ecc97571..44c6fe78c 100644
--- a/src/ai/ai.h
+++ b/src/ai/ai.h
@@ -36,8 +36,8 @@ struct AIStruct {
uint tick; ///< The current tick (something like _frame_counter, only for AIs)
};
-VARDEF AIStruct _ai;
-VARDEF AIPlayer _ai_player[MAX_PLAYERS];
+extern AIStruct _ai;
+extern AIPlayer _ai_player[MAX_PLAYERS];
// ai.c
void AI_StartNewAI(PlayerID player);