(svn r23161) -Fix (r23154): don't convert pointer to bool but actually check the grf_version variable

This commit is contained in:
yexo 2011-11-08 17:40:48 +00:00
parent 6a272233b3
commit 4d2ca18ee1

View File

@ -195,7 +195,7 @@ static uint32 AirportTileGetVariable(const ResolverObject *object, byte variable
case 0x44: return GetAnimationFrame(tile); case 0x44: return GetAnimationFrame(tile);
/* Land info of nearby tiles */ /* Land info of nearby tiles */
case 0x60: return GetNearbyAirportTileInformation(parameter, tile, st->index, object->grffile); case 0x60: return GetNearbyAirportTileInformation(parameter, tile, st->index, object->grffile->grf_version >= 8);
/* Animation stage of nearby tiles */ /* Animation stage of nearby tiles */
case 0x61: case 0x61: