(svn r16655) -Codechange: use IsRailwayStationTile() more

This commit is contained in:
smatz
2009-06-25 15:54:06 +00:00
parent 72bee4ad2d
commit c113303593
4 changed files with 4 additions and 5 deletions

View File

@@ -188,7 +188,7 @@ void Station::MarkTilesDirty(bool cargo_change) const
bool Station::TileBelongsToRailStation(TileIndex tile) const
{
return IsTileType(tile, MP_STATION) && GetStationIndex(tile) == index && IsRailwayStation(tile);
return IsRailwayStationTile(tile) && GetStationIndex(tile) = this->index;
}
/** Obtain the length of a platform