Mercurial > hg > openttd
changeset 17010:df13cc59e779 draft
(svn r21746) -Fix: [NewGRF] Canal variable 83 accessed water random bits also for non-water tiles (e.g. watery industries or objects).
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 09 Jan 2011 13:53:57 +0000 |
parents | eeecf53c75a7 |
children | 559fd62df6d2 |
files | src/newgrf_canal.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_canal.cpp +++ b/src/newgrf_canal.cpp @@ -58,7 +58,7 @@ 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);