summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-06 18:36:36 +0000
committertron <tron@openttd.org>2006-08-06 18:36:36 +0000
commit5fae4637d87c65095d5ebe72ddcb95c852d44d52 (patch)
treed9114e4a2a499a5e10ca8ddde6990c9e3eaba50e /table
parent3254155930feb807f81031ebfdc9acedbe33745e (diff)
downloadopenttd-5fae4637d87c65095d5ebe72ddcb95c852d44d52.tar.xz
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
Diffstat (limited to 'table')
-rw-r--r--table/road_land.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/table/road_land.h b/table/road_land.h
index b1eec6eb7..d09174323 100644
--- a/table/road_land.h
+++ b/table/road_land.h
@@ -1,40 +1,35 @@
/* $Id$ */
-#define TILE_SEQ_BEGIN(x) { x, 0, 0, 0, 0 },
-#define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e },
-#define TILE_SEQ_END() { 0, 0, 0, 0, 0 }
+#define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 20, img },
+#define TILE_SEQ_END() { 0, 0, 0, 0, 0, 0, 0 }
-static const DrawRoadSeqStruct _road_depot_NE[] = {
- TILE_SEQ_BEGIN(0xA4A)
+static const DrawTileSeqStruct _road_depot_NE[] = {
TILE_SEQ_LINE(0x584 | PALETTE_MODIFIER_COLOR, 0, 15, 16, 1)
TILE_SEQ_END()
};
-static const DrawRoadSeqStruct _road_depot_SE[] = {
- TILE_SEQ_BEGIN(0xA4A)
+static const DrawTileSeqStruct _road_depot_SE[] = {
TILE_SEQ_LINE(0x580, 0, 0, 1, 16)
TILE_SEQ_LINE(0x581 | PALETTE_MODIFIER_COLOR, 15, 0, 1, 16)
TILE_SEQ_END()
};
-static const DrawRoadSeqStruct _road_depot_SW[] = {
- TILE_SEQ_BEGIN(0xA4A)
+static const DrawTileSeqStruct _road_depot_SW[] = {
TILE_SEQ_LINE(0x582, 0, 0, 16, 1)
TILE_SEQ_LINE(0x583 | PALETTE_MODIFIER_COLOR, 0, 15, 16, 1)
TILE_SEQ_END()
};
-static const DrawRoadSeqStruct _road_depot_NW[] = {
- TILE_SEQ_BEGIN(0xA4A)
+static const DrawTileSeqStruct _road_depot_NW[] = {
TILE_SEQ_LINE(0x585 | PALETTE_MODIFIER_COLOR, 15, 0, 1, 16)
TILE_SEQ_END()
};
-static const DrawRoadSeqStruct* const _road_depot[] = {
- _road_depot_NE,
- _road_depot_SE,
- _road_depot_SW,
- _road_depot_NW
+static const DrawTileSprites _road_depot[] = {
+ { 0xA4A, _road_depot_NE },
+ { 0xA4A, _road_depot_SE },
+ { 0xA4A, _road_depot_SW },
+ { 0xA4A, _road_depot_NW }
};
#undef TILE_SEQ_BEGIN