diff options
author | tron <tron@openttd.org> | 2006-03-26 19:20:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-26 19:20:15 +0000 |
commit | cda8934a557f6a7066b48a7eecf46360aa795dee (patch) | |
tree | ab641b54ed908fa761cf34615a8966e70f7e78d1 /roadveh_cmd.c | |
parent | 8f60df1817b9d45f8baa5ab96ab9affb6a7025f0 (diff) | |
download | openttd-cda8934a557f6a7066b48a7eecf46360aa795dee.tar.xz |
(svn r4120) Use the new station functions where appropriate
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index e3f1c6fb4..d3b6ae63d 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1088,8 +1088,7 @@ static int RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection enterdir goto do_it; } } else if (IsTileType(desttile, MP_STATION)) { - if (IS_BYTE_INSIDE(_m[desttile].m5, 0x43, 0x4B)) { - /* We are heading for a station */ + if (IsRoadStop(desttile)) { dir = GetRoadStationDir(desttile); do_it:; /* When we are heading for a depot or station, we just @@ -1321,7 +1320,7 @@ again: v->cur_speed = 0; return; } - if (IS_BYTE_INSIDE(_m[v->tile].m5, 0x43, 0x4B)) { + if (IsRoadStop(v->tile)) { RoadStop *rs = GetRoadStopByTile(v->tile, GetRoadStopType(v->tile)); // reached a loading bay, mark it as used and clear the usage bit |