2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file clear_land.h Tables with sprites for clear land and fences. */
10 static const SpriteID _landscape_clear_sprites_rough
[8] = {
12 SPR_FLAT_ROUGH_LAND_1
,
13 SPR_FLAT_ROUGH_LAND_2
,
14 SPR_FLAT_ROUGH_LAND_3
,
15 SPR_FLAT_ROUGH_LAND_4
,
17 SPR_FLAT_ROUGH_LAND_1
,
18 SPR_FLAT_ROUGH_LAND_2
,
21 static const byte _fence_mod_by_tileh_sw
[32] = {
22 0, 2, 4, 0, 0, 2, 4, 0,
23 0, 2, 4, 0, 0, 2, 4, 0,
24 0, 2, 4, 0, 0, 2, 4, 4,
25 0, 2, 4, 2, 0, 2, 4, 0,
28 static const byte _fence_mod_by_tileh_se
[32] = {
29 1, 1, 5, 5, 3, 3, 1, 1,
30 1, 1, 5, 5, 3, 3, 1, 1,
31 1, 1, 5, 5, 3, 3, 1, 5,
32 1, 1, 5, 5, 3, 3, 3, 1,
35 static const byte _fence_mod_by_tileh_ne
[32] = {
36 0, 0, 0, 0, 4, 4, 4, 4,
37 2, 2, 2, 2, 0, 0, 0, 0,
38 0, 0, 0, 0, 4, 4, 4, 4,
39 2, 2, 2, 2, 0, 2, 4, 0,
42 static const byte _fence_mod_by_tileh_nw
[32] = {
43 1, 5, 1, 5, 1, 5, 1, 5,
44 3, 1, 3, 1, 3, 1, 3, 1,
45 1, 5, 1, 5, 1, 5, 1, 5,
46 3, 1, 3, 5, 3, 3, 3, 1,
50 static const SpriteID _clear_land_fence_sprites
[7] = {
52 SPR_HEDGE_BUSHES_WITH_GATE
,
54 SPR_HEDGE_BLOOMBUSH_YELLOW
,
55 SPR_HEDGE_BLOOMBUSH_RED
,
59 static const SpriteID _clear_land_sprites_farmland
[16] = {
68 SPR_FARMLAND_HAYPACKS
,
71 static const SpriteID _clear_land_sprites_snow_desert
[8] = {
72 SPR_FLAT_1_QUART_SNOW_DESERT_TILE
,
73 SPR_FLAT_2_QUART_SNOW_DESERT_TILE
,
74 SPR_FLAT_3_QUART_SNOW_DESERT_TILE
,
75 SPR_FLAT_SNOW_DESERT_TILE
,