summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 11:52:58 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 11:52:58 +0000
commit3461430a34880d0db9ac2b5dc711e7dd876264f7 (patch)
treeed8717d5bb511a903986f8534ab4d1ed282e0b1d /src/ai
parent8aad995e32bfdfd31cbd811f65c5c986f2b9be70 (diff)
downloadopenttd-3461430a34880d0db9ac2b5dc711e7dd876264f7.tar.xz
(svn r19704) -Codechange: unify the style of GSF enums; now they're plural instead of mixed
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_rail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_rail.cpp b/src/ai/api/ai_rail.cpp
index 1db02e274..36f060a50 100644
--- a/src/ai/api/ai_rail.cpp
+++ b/src/ai/api/ai_rail.cpp
@@ -164,7 +164,7 @@
if (station_id != AIStation::STATION_JOIN_ADJACENT) p1 |= (1 << 24);
const GRFFile *file;
- uint16 res = GetAiPurchaseCallbackResult(GSF_STATION, cargo_id, 0, source_industry, goal_industry, min(255, distance / 2), AICE_STATION_GET_STATION_ID, source_station ? 0 : 1, min(15, num_platforms) << 4 | min(15, platform_length), &file);
+ uint16 res = GetAiPurchaseCallbackResult(GSF_STATIONS, cargo_id, 0, source_industry, goal_industry, min(255, distance / 2), AICE_STATION_GET_STATION_ID, source_station ? 0 : 1, min(15, num_platforms) << 4 | min(15, platform_length), &file);
uint32 p2 = (AIStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16;
if (res != CALLBACK_FAILED) {
int index = 0;