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
commit00e76a9e690c2802f9e58bcd156272b4957cc7ff (patch)
tree0b124eebea7eb0a77f32b1b9bb22d5b9993dc2cd
parente70f91a4bfb89024d754ddf436f6a5579216463e (diff)
downloadopenttd-00e76a9e690c2802f9e58bcd156272b4957cc7ff.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)));