summaryrefslogtreecommitdiff
path: root/landscape.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-19 06:46:41 +0000
committertron <tron@openttd.org>2005-10-19 06:46:41 +0000
commitb17b87469c353393e05b9cf3c7e391edc2332dab (patch)
treeb1be08aaabd03b45d086543edd2c1e7ae8031d8e /landscape.c
parentd50ef149928ba9f46cb68df6a7d94bad642c70b5 (diff)
downloadopenttd-b17b87469c353393e05b9cf3c7e391edc2332dab.tar.xz
(svn r3064) Replace some numbers by sprite names
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 c884b0b3d..8bdd289d2 100644
--- a/landscape.c
+++ b/landscape.c
@@ -215,7 +215,7 @@ void DrawFoundation(TileInfo *ti, uint f)
if (f < 15) {
// leveled foundation
- if( sprite_base < SPR_SLOPES_BASE ) sprite_base = 990; // use original slope sprites
+ 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;
@@ -226,7 +226,7 @@ void DrawFoundation(TileInfo *ti, uint f)
sprite_base += 14;
AddSortableSpriteToDraw(
- HASBIT( (1<<1) | (1<<2) | (1<<4) | (1<<8), ti->tileh) ? sprite_base + (f - 15) : ti->tileh + 0x3DE - 1,
+ HASBIT((1<<1) | (1<<2) | (1<<4) | (1<<8), ti->tileh) ? sprite_base + (f - 15) : SPR_FOUNDATION_BASE + ti->tileh,
ti->x, ti->y, 1, 1, 1, ti->z
);