Changeset - r17000:3501c710c68c
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2011-01-09 13:53:57
frosch@openttd.org
(svn r21746) -Fix: [NewGRF] Canal variable 83 accessed water random bits also for non-water tiles (e.g. watery industries or objects).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_canal.cpp
Show inline comments
 
@@ -58,7 +58,7 @@ static uint32 CanalGetVariable(const Res
 
		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);
0 comments (0 inline, 0 general)