diff -r 0b8b245a2391 -r 1ac8aac92385 src/newgrf_station.cpp --- a/src/newgrf_station.cpp Wed Jun 13 11:45:14 2007 +0000 +++ b/src/newgrf_station.cpp Wed Jun 13 12:05:56 2007 +0000 @@ -15,6 +15,7 @@ #include "station_map.h" #include "newgrf.h" #include "newgrf_callbacks.h" +#include "newgrf_commons.h" #include "newgrf_station.h" #include "newgrf_spritegroup.h" #include "date.h" @@ -307,7 +308,7 @@ uint i; for (i = 0; i < lengthof(x_dir); i++, dir++, diagdir++) { - uint32 ts = GetTileTrackStatus(tile + TileOffsByDir(*dir), TRANSPORT_RAIL); + uint32 ts = GetTileTrackStatus(tile + TileOffsByDir(*dir), TRANSPORT_RAIL, 0); if (ts != 0) { /* If there is any track on the tile, set the bit in the second byte */ SETBIT(res, i + 8); @@ -388,10 +389,7 @@ /* Calculated station variables */ case 0x40: return GetPlatformInfoHelper(tile, false, false, false); case 0x41: return GetPlatformInfoHelper(tile, true, false, false); - case 0x42: // Terrain and rail type - return ((_opt.landscape == LT_ARCTIC && GetTileZ(tile) > GetSnowLine()) ? 4 : 0) | - (_opt.landscape == LT_TROPIC ? GetTropicZone(tile) : 0) | - (GetRailType(tile) << 8); + case 0x42: return GetTerrainType(tile) | (GetRailType(tile) << 8); case 0x43: return st->owner; // Station owner case 0x44: return 2; // PBS status case 0x45: return GetRailContinuationInfo(tile);