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
commitfafab82a312660ba3dc66b2e06d1a1dec6776103 (patch)
treeec37405dba3eeb85aaeaa7e2ed2433812d3061d6 /src/ai
parent86a6268f3ea3072afa30297cf6017885cbff31f7 (diff)
downloadopenttd-fafab82a312660ba3dc66b2e06d1a1dec6776103.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);