diff options
author | peter1138 <peter1138@openttd.org> | 2006-02-27 19:43:19 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-02-27 19:43:19 +0000 |
commit | 23b13d3f421d5013e2a3219ba6fa0fae9b5337d6 (patch) | |
tree | bc4e2edd889cfc425d75bad9eecbd5323c74a484 /station.h | |
parent | 263741bf9b247083d9d675741380efdf02bb0bcb (diff) | |
download | openttd-23b13d3f421d5013e2a3219ba6fa0fae9b5337d6.tar.xz |
(svn r3681) - [Multistop] Check the RoadStop type before check its status. This fixes an assert introduced in r3663. Also fix the return type of GetRoadStopType().
Diffstat (limited to 'station.h')
-rw-r--r-- | station.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -196,7 +196,7 @@ uint GetStationPlatforms(const Station *st, TileIndex tile); void StationPickerDrawSprite(int x, int y, RailType railtype, int image); RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type); -static inline int GetRoadStopType(TileIndex tile) +static inline RoadStopType GetRoadStopType(TileIndex tile) { return (_m[tile].m5 < 0x47) ? RS_TRUCK : RS_BUS; } |