summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-31 19:10:54 +0000
committercelestar <celestar@openttd.org>2006-03-31 19:10:54 +0000
commit446493149c637ea2517be5c17f86047911130489 (patch)
treeb1afcd4a3ffa7895ccd33c4d034fb543b8d4765f /vehicle.c
parent1f88ea4ec64f7dc8153dff3a8ca0ce20e7789a68 (diff)
downloadopenttd-446493149c637ea2517be5c17f86047911130489.tar.xz
(svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and moved them to station_map.h to keep consistency
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 0d938f5f7..7f5aabc20 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -23,6 +23,7 @@
#include "station.h"
#include "rail.h"
#include "train.h"
+#include "station_map.h"
#define INVALID_COORD (-0x8000)
#define GEN_HASH(x,y) (((x & 0x1F80)>>7) + ((y & 0xFC0)))
@@ -1988,8 +1989,8 @@ Trackdir GetVehicleTrackdir(const Vehicle* v)
if (v->u.road.state == 254) /* We'll assume the road vehicle is facing outwards */
return DiagdirToDiagTrackdir(GetRoadDepotDirection(v->tile));
- if (IsRoadStationTile(v->tile)) /* We'll assume the road vehicle is facing outwards */
- return DiagdirToDiagTrackdir(GetRoadStationDir(v->tile)); /* Road vehicle in a station */
+ if (IsRoadStopTile(v->tile)) /* We'll assume the road vehicle is facing outwards */
+ return DiagdirToDiagTrackdir(GetRoadStopDir(v->tile)); /* Road vehicle in a station */
return DiagdirToDiagTrackdir(DirToDiagDir(v->direction));