mirror of https://github.com/OpenTTD/OpenTTD
(svn r10687) -Fix (r10686): subversion does not like it when you change code when you are typing the commit message.
parent
8131ce7e21
commit
669f879632
|
@ -55,7 +55,7 @@ uint GetTileZ(TileIndex tile)
|
||||||
|
|
||||||
uint GetTileMaxZ(TileIndex t)
|
uint GetTileMaxZ(TileIndex t)
|
||||||
{
|
{
|
||||||
if (TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY()) return 0;
|
if (TileX(t) == MapMaxX() || TileY(t) == MapMaxY()) return 0;
|
||||||
|
|
||||||
uint h = TileHeight(t);
|
uint h = TileHeight(t);
|
||||||
h = max(h, TileHeight(t + TileDiffXY(1, 0)));
|
h = max(h, TileHeight(t + TileDiffXY(1, 0)));
|
||||||
|
|
Loading…
Reference in New Issue