ai/trolly/trolly.c
changeset 3338 2c60ed0dcce3
parent 3315 1f65f8260092
child 3344 d86c852715fa
--- a/ai/trolly/trolly.c	Sun Mar 26 19:03:03 2006 +0000
+++ b/ai/trolly/trolly.c	Sun Mar 26 19:20:15 2006 +0000
@@ -617,9 +617,7 @@
 							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;
 							}
 						}