Mercurial > hg > openttd
changeset 17854:dad45d2edebf draft
(svn r22645) -Fix [FS#4678]: GetSection() does not return a LockPart.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 10 Jul 2011 13:00:05 +0000 |
parents | 71b5046c83c4 |
children | a35585431755 |
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 @@ -50,7 +50,7 @@ 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; }