summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-15 11:06:54 +0000
committertron <tron@openttd.org>2005-10-15 11:06:54 +0000
commitd5042d4ab2739150a311f032a7df63b45ef65928 (patch)
treeb29021fa7ba6b899a521aa0856f9ea9ba5047dbe /water_cmd.c
parentab41ccb23c92b30fdbdfe793e31ccc4bd5df6661 (diff)
downloadopenttd-d5042d4ab2739150a311f032a7df63b45ef65928.tar.xz
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 8b00cdab9..0a0076c1c 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -17,7 +17,21 @@
#include "vehicle_gui.h"
const SpriteID _water_shore_sprites[15] = {
- 0, 0xFDF, 0xFE0, 0xFE4, 0xFDE, 0, 0xFE2, 0, 0xFE1, 0xFE5, 0, 0, 0xFE3, 0, 0
+ 0,
+ SPR_SHORE_TILEH_1,
+ SPR_SHORE_TILEH_2,
+ SPR_SHORE_TILEH_3,
+ SPR_SHORE_TILEH_4,
+ 0,
+ SPR_SHORE_TILEH_6,
+ 0,
+ SPR_SHORE_TILEH_8,
+ SPR_SHORE_TILEH_9,
+ 0,
+ 0,
+ SPR_SHORE_TILEH_12,
+ 0,
+ 0
};
@@ -411,7 +425,7 @@ static void DrawTile_Water(TileInfo *ti)
{
// draw water tile
if (ti->map5 == 0) {
- DrawGroundSprite(0xFDD);
+ DrawGroundSprite(SPR_FLAT_WATER_TILE);
if (ti->z != 0) DrawCanalWater(ti->tile);
return;
}