From c40740e058983e02912d7844a64f0c2568df7b28 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 26 Mar 2006 19:20:15 +0000 Subject: (svn r4120) Use the new station functions where appropriate --- ai/trolly/trolly.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ai/trolly/trolly.c') 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; } } -- cgit v1.2.3-70-g09d2