summaryrefslogtreecommitdiff
path: root/ai/default
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 09:00:02 +0000
committertron <tron@openttd.org>2005-11-15 09:00:02 +0000
commitb9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2 (patch)
tree403f3895461c780ab3903620ba2129a83d43eaea /ai/default
parent1b0091e0d29a59811522758c00b690f4f07b471b (diff)
downloadopenttd-b9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2.tar.xz
(svn r3185) const
Diffstat (limited to 'ai/default')
-rw-r--r--ai/default/default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index b627c3904..845428eeb 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -1852,7 +1852,7 @@ static bool AiEnumFollowTrack(TileIndex tile, AiRailPathFindData *a, int track,
return false;
}
-static bool AiDoFollowTrack(Player *p)
+static bool AiDoFollowTrack(const Player* p)
{
AiRailPathFindData arpfd;
@@ -3194,7 +3194,7 @@ static void AiStateBuildRoadVehicles(Player *p)
loco_id = _new_roadveh_id;
for (i = 0; p->ai.order_list_blocks[i] != 0xFF; i++) {
- AiBuildRec* aib = &p->ai.src + p->ai.order_list_blocks[i];
+ const AiBuildRec* aib = &p->ai.src + p->ai.order_list_blocks[i];
bool is_pass = (
p->ai.cargo_type == CT_PASSENGERS ||
p->ai.cargo_type == CT_MAIL ||