summaryrefslogtreecommitdiff
path: root/ai/trolly/trolly.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-26 19:20:15 +0000
committertron <tron@openttd.org>2006-03-26 19:20:15 +0000
commitcda8934a557f6a7066b48a7eecf46360aa795dee (patch)
treeab641b54ed908fa761cf34615a8966e70f7e78d1 /ai/trolly/trolly.c
parent8f60df1817b9d45f8baa5ab96ab9affb6a7025f0 (diff)
downloadopenttd-cda8934a557f6a7066b48a7eecf46360aa795dee.tar.xz
(svn r4120) Use the new station functions where appropriate
Diffstat (limited to 'ai/trolly/trolly.c')
-rw-r--r--ai/trolly/trolly.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ai/trolly/trolly.c b/ai/trolly/trolly.c
index eac7793ae..9f00579cb 100644
--- a/ai/trolly/trolly.c
+++ b/ai/trolly/trolly.c
@@ -617,9 +617,7 @@ static void AiNew_State_FindStation(Player *p)
if (AiNew_CheckVehicleStation(p, st)) {
// We did found a station that was good enough!
new_tile = st->xy;
- // Cheap way to get the direction of the station...
- // Bus stations save it as 0x47 .. 0x4A, so decrease it with 0x47, and tada!
- direction = _m[st->xy].m5 - 0x47;
+ direction = GetRoadStationDir(st->xy);
break;
}
}