From b102b58bde877c389e1f2ca775809fcf1a9fb0fb Mon Sep 17 00:00:00 2001 From: planetmaker Date: Sat, 20 Aug 2011 05:35:03 +0000 Subject: (svn r22765) -Cleanup: Remove unused constants and name a magic constant --- src/table/sprites.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/table') diff --git a/src/table/sprites.h b/src/table/sprites.h index d4c96cddb..65988b568 100644 --- a/src/table/sprites.h +++ b/src/table/sprites.h @@ -388,20 +388,7 @@ static const SpriteID SPR_WAYPOINT_X_1 = SPR_OPENTTD_BASE + 78; static const SpriteID SPR_WAYPOINT_X_2 = SPR_OPENTTD_BASE + 79; static const SpriteID SPR_WAYPOINT_Y_1 = SPR_OPENTTD_BASE + 80; static const SpriteID SPR_WAYPOINT_Y_2 = SPR_OPENTTD_BASE + 81; - -static const uint16 OFFSET_TILEH_IMPOSSIBLE = 0; -static const uint16 OFFSET_TILEH_1 = 14; -static const uint16 OFFSET_TILEH_2 = 15; -static const uint16 OFFSET_TILEH_3 = 22; -static const uint16 OFFSET_TILEH_4 = 13; -static const uint16 OFFSET_TILEH_6 = 21; -static const uint16 OFFSET_TILEH_7 = 17; -static const uint16 OFFSET_TILEH_8 = 12; -static const uint16 OFFSET_TILEH_9 = 23; -static const uint16 OFFSET_TILEH_11 = 18; -static const uint16 OFFSET_TILEH_12 = 20; -static const uint16 OFFSET_TILEH_13 = 19; -static const uint16 OFFSET_TILEH_14 = 16; +/* see _track_sloped_sprites in rail_cmd.cpp for slope offsets */ /* Track fences */ static const SpriteID SPR_TRACK_FENCE_FLAT_X = 1301; @@ -537,8 +524,10 @@ static const SpriteID SPR_BUOY = 4076; // XXX this sucks, /* Sprites for road */ static const SpriteID SPR_ROAD_Y = 1332; static const SpriteID SPR_ROAD_X = 1333; +static const SpriteID SPR_ROAD_SLOPE_START = 1343; static const SpriteID SPR_ROAD_Y_SNOW = 1351; static const SpriteID SPR_ROAD_X_SNOW = 1352; +/* see _road_sloped_sprites_offset in road_cmd.cpp for offsets for sloped road tiles */ static const SpriteID SPR_EXCAVATION_X = 1414; static const SpriteID SPR_EXCAVATION_Y = 1415; -- cgit v1.2.3-70-g09d2