summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-25 15:54:06 +0000
committersmatz <smatz@openttd.org>2009-06-25 15:54:06 +0000
commit38477f2b36b6d3ce3123eb379dbbdc29fb0f5251 (patch)
tree6a46f03ad7aae756c846320b9ab15065790b933f /src/newgrf_station.cpp
parentfa1ad0fd3c4bb20af746d5ee7588afcb0e5f8375 (diff)
downloadopenttd-38477f2b36b6d3ce3123eb379dbbdc29fb0f5251.tar.xz
(svn r16655) -Codechange: use IsRailwayStationTile() more
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 7bb69341e..89331f26b 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -747,7 +747,7 @@ void DeallocateSpecFromStation(Station *st, byte specindex)
/* Check all tiles over the station to check if the specindex is still in use */
BEGIN_TILE_LOOP(tile, st->trainst_w, st->trainst_h, st->train_tile) {
- if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st->index && IsRailwayStation(tile) && GetCustomStationSpecIndex(tile) == specindex) {
+ if (IsRailwayStationTile(tile) && GetStationIndex(tile) == st->index && GetCustomStationSpecIndex(tile) == specindex) {
return;
}
} END_TILE_LOOP(tile, st->trainst_w, st->trainst_h, st->train_tile)