mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21746) -Fix: [NewGRF] Canal variable 83 accessed water random bits also for non-water tiles (e.g. watery industries or objects).
This commit is contained in:
parent
8ffc288901
commit
35be634974
|
@ -58,7 +58,7 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
|
|||
case 0x81: return GetTerrainType(tile);
|
||||
|
||||
/* Random data for river or canal tiles, otherwise zero */
|
||||
case 0x83: return GetWaterTileRandomBits(tile);
|
||||
case 0x83: return IsTileType(tile, MP_WATER) ? GetWaterTileRandomBits(tile) : 0;
|
||||
}
|
||||
|
||||
DEBUG(grf, 1, "Unhandled canal variable 0x%02X", variable);
|
||||
|
|
Loading…
Reference in New Issue