summaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-10 18:56:51 +0000
committerrubidium <rubidium@openttd.org>2007-01-10 18:56:51 +0000
commitf35ed4bbc2b05f1b83476b60948d64375f77f1b4 (patch)
tree1a1c59c13ddb1d152052f3a3a0bcffe4fb531173 /src/tile.cpp
parenta332d10fd938f345fff18e5f4a662a58f692f734 (diff)
downloadopenttd-f35ed4bbc2b05f1b83476b60948d64375f77f1b4.tar.xz
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index ba6900a36..c9db4516f 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -16,7 +16,7 @@ Slope GetTileSlope(TileIndex tile, uint *h)
if (TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY()) {
if (h != NULL) *h = 0;
- return 0;
+ return SLOPE_FLAT;
}
min = a = TileHeight(tile);
@@ -35,7 +35,7 @@ Slope GetTileSlope(TileIndex tile, uint *h)
if (h != NULL) *h = min * TILE_HEIGHT;
- return r;
+ return (Slope)r;
}
uint GetTileZ(TileIndex tile)