diff options
author | tron <tron@openttd.org> | 2007-01-19 06:08:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-01-19 06:08:04 +0000 |
commit | 659adc7c42cbad3220519b08e80f5c7cdcfd088a (patch) | |
tree | 30a451504885acf837f972e545a92f98fb2c1aec /src/table/road_land.h | |
parent | 53457d1acbf5a3fed7a73cf7d59558f7a9c3bd8e (diff) | |
download | openttd-659adc7c42cbad3220519b08e80f5c7cdcfd088a.tar.xz |
(svn r8275) -Fix
Factor common data tables and use a bit more sensible names
Diffstat (limited to 'src/table/road_land.h')
-rw-r--r-- | src/table/road_land.h | 111 |
1 files changed, 32 insertions, 79 deletions
diff --git a/src/table/road_land.h b/src/table/road_land.h index 4e3c978a0..9e40b54bc 100644 --- a/src/table/road_land.h +++ b/src/table/road_land.h @@ -46,15 +46,8 @@ static const SpriteID _road_tile_sprites_1[16] = { #define MAKELINE(a, b, c) { a, b, c }, #define ENDLINE { 0, 0, 0 } -static const DrawRoadTileStruct _road_display_datas2_0[] = { - ENDLINE -}; - -static const DrawRoadTileStruct _road_display_datas2_1[] = { - ENDLINE -}; -static const DrawRoadTileStruct _road_display_datas2_2[] = { +static const DrawRoadTileStruct _roadside_nothing[] = { ENDLINE }; @@ -63,10 +56,6 @@ static const DrawRoadTileStruct _road_display_datas2_3[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_4[] = { - ENDLINE -}; - static const DrawRoadTileStruct _road_display_datas2_5[] = { MAKELINE(0x57f, 1, 8) MAKELINE(0x57e, 14, 8) @@ -83,10 +72,6 @@ static const DrawRoadTileStruct _road_display_datas2_7[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_8[] = { - ENDLINE -}; - static const DrawRoadTileStruct _road_display_datas2_9[] = { MAKELINE(0x57f, 8, 14) ENDLINE @@ -118,22 +103,6 @@ static const DrawRoadTileStruct _road_display_datas2_14[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_15[] = { - ENDLINE -}; - -static const DrawRoadTileStruct _road_display_datas2_16[] = { - ENDLINE -}; - -static const DrawRoadTileStruct _road_display_datas2_17[] = { - ENDLINE -}; - -static const DrawRoadTileStruct _road_display_datas2_18[] = { - ENDLINE -}; - static const DrawRoadTileStruct _road_display_datas2_19[] = { MAKELINE(0x1212, 0, 2) MAKELINE(0x1212, 3, 9) @@ -141,10 +110,6 @@ static const DrawRoadTileStruct _road_display_datas2_19[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_20[] = { - ENDLINE -}; - static const DrawRoadTileStruct _road_display_datas2_21[] = { MAKELINE(0x1212, 0, 2) MAKELINE(0x1212, 0, 10) @@ -166,10 +131,6 @@ static const DrawRoadTileStruct _road_display_datas2_23[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_24[] = { - ENDLINE -}; - static const DrawRoadTileStruct _road_display_datas2_25[] = { MAKELINE(0x1212, 12, 2) MAKELINE(0x1212, 9, 9) @@ -210,72 +171,64 @@ static const DrawRoadTileStruct _road_display_datas2_30[] = { ENDLINE }; -static const DrawRoadTileStruct _road_display_datas2_31[] = { - ENDLINE -}; - -static const DrawRoadTileStruct _road_display_datas2_32[] = { - ENDLINE -}; - #undef MAKELINE #undef ENDLINE -static const DrawRoadTileStruct* const _road_display_table_1[] = { - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, - _road_display_datas2_32,_road_display_datas2_32, -}; - -static const DrawRoadTileStruct* const _road_display_table_2[] = { - _road_display_datas2_0, - _road_display_datas2_1, - _road_display_datas2_2, +static const DrawRoadTileStruct* const _roadside_none[] = { + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing, + _roadside_nothing, _roadside_nothing +}; + +static const DrawRoadTileStruct* const _roadside_lamps[] = { + _roadside_nothing, + _roadside_nothing, + _roadside_nothing, _road_display_datas2_3, - _road_display_datas2_4, + _roadside_nothing, _road_display_datas2_5, _road_display_datas2_6, _road_display_datas2_7, - _road_display_datas2_8, + _roadside_nothing, _road_display_datas2_9, _road_display_datas2_10, _road_display_datas2_11, _road_display_datas2_12, _road_display_datas2_13, _road_display_datas2_14, - _road_display_datas2_15, + _roadside_nothing, }; -static const DrawRoadTileStruct* const _road_display_table_3[] = { - _road_display_datas2_16, - _road_display_datas2_17, - _road_display_datas2_18, +static const DrawRoadTileStruct* const _roadside_trees[] = { + _roadside_nothing, + _roadside_nothing, + _roadside_nothing, _road_display_datas2_19, - _road_display_datas2_20, + _roadside_nothing, _road_display_datas2_21, _road_display_datas2_22, _road_display_datas2_23, - _road_display_datas2_24, + _roadside_nothing, _road_display_datas2_25, _road_display_datas2_26, _road_display_datas2_27, _road_display_datas2_28, _road_display_datas2_29, _road_display_datas2_30, - _road_display_datas2_31, + _roadside_nothing, }; static const DrawRoadTileStruct* const * const _road_display_table[] = { - _road_display_table_1, - _road_display_table_1, - _road_display_table_1, - _road_display_table_2, - _road_display_table_1, - _road_display_table_3, + _roadside_none, + _roadside_none, + _roadside_none, + _roadside_lamps, + _roadside_none, + _roadside_trees, }; |