summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-25 17:07:38 +0000
committerrubidium <rubidium@openttd.org>2007-07-25 17:07:38 +0000
commit669f879632c99dcd935343fd09fcfd2ebfef5301 (patch)
tree0b124eebea7eb0a77f32b1b9bb22d5b9993dc2cd
parent8131ce7e21b93234d43e3c0c90319d44935a5b5a (diff)
downloadopenttd-669f879632c99dcd935343fd09fcfd2ebfef5301.tar.xz
(svn r10687) -Fix (r10686): subversion does not like it when you change code when you are typing the commit message.
-rw-r--r--src/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 449156465..a7199c1b8 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -55,7 +55,7 @@ uint GetTileZ(TileIndex tile)
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);
h = max(h, TileHeight(t + TileDiffXY(1, 0)));