1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 23:49:09 +00:00

(svn r4113) Moved all relevant map functions for stations to station_map.[ch]

Some work with animated tiles remains. Thanks to Tron for parts of the code and lots of proof-reading and suggesting
This commit is contained in:
celestar
2006-03-26 14:41:39 +00:00
parent 9ad72f2d47
commit 3770ad0637
5 changed files with 266 additions and 108 deletions

View File

@@ -2029,7 +2029,7 @@ static bool NtpCallbFindStation(TileIndex tile, TrainTrackFollowerData *ttfd, in
// did we reach the final station?
if ((ttfd->station_index == INVALID_STATION && tile == ttfd->dest_coords) || (
IsTileType(tile, MP_STATION) &&
IS_BYTE_INSIDE(_m[tile].m5, 0, 8) &&
IsRailwayStation(tile) &&
GetStationIndex(tile) == ttfd->station_index
)) {
/* We do not check for dest_coords if we have a station_index,