summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-13 13:43:55 +0000
committertron <tron@openttd.org>2005-11-13 13:43:55 +0000
commit81e5b16d7178f0ee5584201cb2f6c8e36742354f (patch)
tree385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /ai
parentd97f56b4e2b6159e696128932da28b89a13a30e0 (diff)
downloadopenttd-81e5b16d7178f0ee5584201cb2f6c8e36742354f.tar.xz
(svn r3172) static, const
Diffstat (limited to 'ai')
-rw-r--r--ai/default/default.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index 3c8264604..7f0ae2aa8 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -1905,7 +1905,8 @@ static const byte _dir_table_1[] = {3, 9, 12, 6};
static const byte _dir_table_2[] = {12, 6, 3, 9};
-static bool AiIsTileBanned(Player *p, TileIndex tile, byte val) {
+static bool AiIsTileBanned(const Player* p, TileIndex tile, byte val)
+{
int i;
for(i=0; i!=p->ai.banned_tile_count; i++)