Changeset - r17844:d9b8be946446
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-07-10 13:00:05
frosch@openttd.org
(svn r22645) -Fix [FS#4678]: GetSection() does not return a LockPart.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_canal.cpp
Show inline comments
 
@@ -50,7 +50,7 @@ static uint32 CanalGetVariable(const Res
 
		case 0x80: {
 
			uint z = GetTileZ(tile) / TILE_HEIGHT;
 
			/* Return consistent height within locks */
 
			if (IsTileType(tile, MP_WATER) && IsLock(tile) && GetSection(tile) == LOCK_UPPER) z--;
 
			if (IsTileType(tile, MP_WATER) && IsLock(tile) && GetSection(tile) >= 8) z--;
 
			return z;
 
		}
 

	
0 comments (0 inline, 0 general)