diff options
author | tron <tron@openttd.org> | 2006-08-03 06:44:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-03 06:44:54 +0000 |
commit | b0135b438126c090f9a00d479da5ea2b21fe3338 (patch) | |
tree | c97ab5288c58e7857825a1db757a20ad123891de /table | |
parent | 76ea272c9c77f50a8e7bddcdb0990636ad88a3ca (diff) | |
download | openttd-b0135b438126c090f9a00d479da5ea2b21fe3338.tar.xz |
(svn r5723) - Move the declaration of DrawRoadDepotSprite() out of functions.h (but I'm not too happy with the new header)
- Use DiagDirection instead of plain int for the orientation of the depot graphics
- Rename the associated data tables with sprites to something more meaningful
Diffstat (limited to 'table')
-rw-r--r-- | table/road_land.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/table/road_land.h b/table/road_land.h index fd01731a7..b1eec6eb7 100644 --- a/table/road_land.h +++ b/table/road_land.h @@ -4,37 +4,37 @@ #define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e }, #define TILE_SEQ_END() { 0, 0, 0, 0, 0 } -static const DrawRoadSeqStruct _road_display_datas_0[] = { +static const DrawRoadSeqStruct _road_depot_NE[] = { TILE_SEQ_BEGIN(0xA4A) TILE_SEQ_LINE(0x584 | PALETTE_MODIFIER_COLOR, 0, 15, 16, 1) TILE_SEQ_END() }; -static const DrawRoadSeqStruct _road_display_datas_1[] = { +static const DrawRoadSeqStruct _road_depot_SE[] = { TILE_SEQ_BEGIN(0xA4A) 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_display_datas_2[] = { +static const DrawRoadSeqStruct _road_depot_SW[] = { TILE_SEQ_BEGIN(0xA4A) 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_display_datas_3[] = { +static const DrawRoadSeqStruct _road_depot_NW[] = { TILE_SEQ_BEGIN(0xA4A) TILE_SEQ_LINE(0x585 | PALETTE_MODIFIER_COLOR, 15, 0, 1, 16) TILE_SEQ_END() }; -static const DrawRoadSeqStruct* const _road_display_datas[] = { - _road_display_datas_0, - _road_display_datas_1, - _road_display_datas_2, - _road_display_datas_3, +static const DrawRoadSeqStruct* const _road_depot[] = { + _road_depot_NE, + _road_depot_SE, + _road_depot_SW, + _road_depot_NW }; #undef TILE_SEQ_BEGIN |