summaryrefslogtreecommitdiff
path: root/landscape.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-23 19:35:36 +0000
committertron <tron@openttd.org>2006-04-23 19:35:36 +0000
commit6dbc9c9ced44d98abb8759593db92910f16292e4 (patch)
tree020949ed699a5b1e636d9d4da8e68db3751bf261 /landscape.c
parentaac74778c5020c2f101d9012ab988418a870d7c0 (diff)
downloadopenttd-6dbc9c9ced44d98abb8759593db92910f16292e4.tar.xz
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
Diffstat (limited to 'landscape.c')
-rw-r--r--landscape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/landscape.c b/landscape.c
index b5d904275..53c72dfaf 100644
--- a/landscape.c
+++ b/landscape.c
@@ -212,7 +212,7 @@ void DrawFoundation(TileInfo *ti, uint f)
if (sprite_base < SPR_SLOPES_BASE) sprite_base = SPR_FOUNDATION_BASE + 1; // use original slope sprites
AddSortableSpriteToDraw(f - 1 + sprite_base, ti->x, ti->y, 16, 16, 7, ti->z);
- ti->z += 8;
+ ti->z += TILE_HEIGHT;
ti->tileh = SLOPE_FLAT;
OffsetGroundSprite(31, 1);
} else {
@@ -332,7 +332,7 @@ int32 CmdClearArea(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
// draw explosion animation...
if ((x == sx || x == ex) && (y == sy || y == ey)) {
// big explosion in each corner, or small explosion for single tiles
- CreateEffectVehicleAbove(x * TILE_SIZE + 8, y * TILE_SIZE + 8, 2,
+ CreateEffectVehicleAbove(x * TILE_SIZE + TILE_SIZE / 2, y * TILE_SIZE + TILE_SIZE / 2, 2,
sy == ey && sx == ex ? EV_EXPLOSION_SMALL : EV_EXPLOSION_LARGE
);
}