town_cmd.c
changeset 3645 7f950533d510
parent 3639 c27c9e4fddbd
child 3654 c09872510a61
--- a/town_cmd.c	Sun Apr 23 19:08:33 2006 +0000
+++ b/town_cmd.c	Sun Apr 23 19:35:36 2006 +0000
@@ -106,7 +106,7 @@
 	if (ti->tileh != SLOPE_FLAT) {
 		AddSortableSpriteToDraw(SPR_FOUNDATION_BASE + ti->tileh, ti->x, ti->y, 16, 16, 7, z);
 		AddChildSpriteScreen(dcts->sprite_1, 31, 1);
-		z += 8;
+		z += TILE_HEIGHT;
 	} else {
 		/* Else draw regular ground */
 		DrawGroundSprite(dcts->sprite_1);
@@ -137,7 +137,7 @@
 
 static uint GetSlopeZ_Town(const TileInfo* ti)
 {
-	return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : 8);
+	return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT);
 }
 
 static Slope GetSlopeTileh_Town(TileIndex tile, Slope tileh)