summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 13:40:59 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 13:40:59 +0000
commit9782b7bb0af914d749b125c3a0ae56cccc99c8e3 (patch)
tree3c96c798077d2903e39a390e2d7e79c7b2e6e836 /src/viewport.cpp
parent81f583de4775858ec78b66b4e9bea6ce9952c5b9 (diff)
downloadopenttd-9782b7bb0af914d749b125c3a0ae56cccc99c8e3.tar.xz
(svn r23110) -Codechange: let the flying altitude return ints are well
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 58fa27606..6beb60836 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -599,7 +599,7 @@ void OffsetGroundSprite(int x, int y)
* @param z position z of the sprite.
* @param sub Only draw a part of the sprite.
*/
-static void AddCombinedSprite(SpriteID image, PaletteID pal, int x, int y, byte z, const SubSprite *sub)
+static void AddCombinedSprite(SpriteID image, PaletteID pal, int x, int y, int z, const SubSprite *sub)
{
Point pt = RemapCoords(x, y, z);
const Sprite *spr = GetSprite(image & SPRITE_MASK, ST_NORMAL);
@@ -984,7 +984,7 @@ draw_inner:
if (!is_redsq) DrawTileSelectionRect(ti, _thd.make_square_red ? PALETTE_SEL_TILE_RED : PAL_NONE);
} else if (_thd.drawstyle & HT_POINT) {
/* Figure out the Z coordinate for the single dot. */
- byte z = 0;
+ int z = 0;
FoundationPart foundation_part = FOUNDATION_PART_NORMAL;
if (ti->tileh & SLOPE_N) {
z += TILE_HEIGHT;