mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
214 lines
12 KiB
C
214 lines
12 KiB
C
|
static const SpriteID _tree_sprites_1[4] = {
|
||
|
0x118D,
|
||
|
0x11A0,
|
||
|
0x11B3,
|
||
|
0x11C6,
|
||
|
};
|
||
|
|
||
|
static const byte _tree_layout_xy[4][8] = {
|
||
|
{9, 3, 1, 8, 0, 0, 8, 9},
|
||
|
{4, 4, 9, 1, 6, 9, 0, 9},
|
||
|
{9, 1, 0, 9, 6, 6, 3, 0},
|
||
|
{3, 9, 8, 2, 9, 9, 1, 5},
|
||
|
};
|
||
|
|
||
|
static const PalSpriteID _tree_layout_sprite[164+(79-48+1)][4] = {
|
||
|
{ 0x652, 0x659, 0x660, 0x667}, /* 0 */
|
||
|
{ 0x652, 0x667, 0x66e, 0x675}, /* 1 */
|
||
|
{ 0x652, 0x66e, 0x659, 0x675}, /* 2 */
|
||
|
{ 0x652, 0x652, 0x660, 0x66e}, /* 3 */
|
||
|
{ 0x660, 0x667, 0x659, 0x652}, /* 4 */
|
||
|
{ 0x660, 0x675, 0x660, 0x660}, /* 5 */
|
||
|
{ 0x660, 0x652, 0x652, 0x66e}, /* 6 */
|
||
|
{ 0x660, 0x675, 0x667, 0x659}, /* 7 */
|
||
|
{ 0x675, 0x660, 0x675, 0x675}, /* 8 */
|
||
|
{ 0x675, 0x659, 0x652, 0x652}, /* 9 */
|
||
|
{ 0x675, 0x66e, 0x652, 0x652}, /* 10 */
|
||
|
{ 0x675, 0x667, 0x659, 0x667}, /* 11 */
|
||
|
{ 0x628, 0x652, 0x660, 0x62f}, /* 12 */
|
||
|
{ 0x628, 0x636, 0x675, 0x644}, /* 13 */
|
||
|
{ 0x628, 0x652, 0x63d, 0x66e}, /* 14 */
|
||
|
{ 0x628, 0x667, 0x644, 0x652}, /* 15 */
|
||
|
{ 0x644, 0x659, 0x660, 0x628}, /* 16 */
|
||
|
{ 0x644, 0x64b, 0x659, 0x636}, /* 17 */
|
||
|
{ 0x644, 0x675, 0x652, 0x63d}, /* 18 */
|
||
|
{ 0x644, 0x63d, 0x66e, 0x652}, /* 19 */
|
||
|
{ 0x636, 0x636, 0x628, 0x636}, /* 20 */
|
||
|
{ 0x636, 0x63d, 0x636, 0x636}, /* 21 */
|
||
|
{ 0x636, 0x64b, 0x636, 0x636}, /* 22 */
|
||
|
{ 0x636, 0x636, 0x636, 0x636}, /* 23 */
|
||
|
{ 0x64b, 0x628, 0x62f, 0x636}, /* 24 */
|
||
|
{ 0x64b, 0x63d, 0x644, 0x636}, /* 25 */
|
||
|
{ 0x64b, 0x636, 0x63d, 0x628}, /* 26 */
|
||
|
{ 0x64b, 0x64b, 0x636, 0x63d}, /* 27 */
|
||
|
{ 0x62f, 0x644, 0x644, 0x636}, /* 28 */
|
||
|
{ 0x62f, 0x62f, 0x636, 0x628}, /* 29 */
|
||
|
{ 0x62f, 0x64b, 0x636, 0x636}, /* 30 */
|
||
|
{ 0x62f, 0x636, 0x62f, 0x636}, /* 31 */
|
||
|
{ 0x67c, 0x675, 0x683, 0x67c}, /* 32 */
|
||
|
{ 0x67c, 0x69f, 0x67c, 0x659}, /* 33 */
|
||
|
{ 0x67c, 0x67c, 0x67c, 0x6a6}, /* 34 */
|
||
|
{ 0x67c, 0x691, 0x66e, 0x68a}, /* 35 */
|
||
|
{ 0x68a, 0x68a, 0x698, 0x68a}, /* 36 */
|
||
|
{ 0x68a, 0x698, 0x683, 0x68a}, /* 37 */
|
||
|
{ 0x68a, 0x67c, 0x691, 0x68a}, /* 38 */
|
||
|
{ 0x68a, 0x683, 0x6a6, 0x69f}, /* 39 */
|
||
|
{ 0x698, 0x68a, 0x698, 0x652}, /* 40 */
|
||
|
{ 0x698, 0x698, 0x660, 0x667}, /* 41 */
|
||
|
{ 0x698, 0x67c, 0x6a6, 0x698}, /* 42 */
|
||
|
{ 0x698, 0x698, 0x698, 0x691}, /* 43 */
|
||
|
{ 0x6a6, 0x6a6, 0x67c, 0x660},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0x6b4, 0x6de, 0x6c9}, /* 68 */
|
||
|
{ 0x6b4, 0x6bb, 0x6bb, 0x6ad}, /* 69 */
|
||
|
{ 0x6b4, 0x6de, 0x6bb, 0x6b4}, /* 70 */
|
||
|
{ 0x6b4, 0x6ad, 0x6c2, 0x6de}, /* 71 */
|
||
|
{ 0x6bb, 0x6d0, 0x6de, 0x6c2}, /* 72 */
|
||
|
{ 0x6bb, 0x6b4, 0x6bb, 0x6d7}, /* 73 */
|
||
|
{ 0x6bb, 0x6de, 0x6bb, 0x6b4}, /* 74 */
|
||
|
{ 0x6bb, 0x6c9, 0x6c2, 0x6de}, /* 75 */
|
||
|
{ 0x6de, 0x6d7, 0x6de, 0x6c2}, /* 76 */
|
||
|
{ 0x6de, 0x6bb, 0x6de, 0x6d0}, /* 77 */
|
||
|
{ 0x6de, 0x6de, 0x6bb, 0x6b4}, /* 78 */
|
||
|
{ 0x6de, 0x6c9, 0x6c2, 0x6de}, /* 79 */
|
||
|
{ 0x72b, 0x732, 0x72b, 0x739}, /* 80 */
|
||
|
{ 0x72b, 0x747, 0x755, 0x72b}, /* 81 */
|
||
|
{ 0x72b, 0x72b, 0x76a, 0x786}, /* 82 */
|
||
|
{ 0x72b, 0x74e, 0x72b, 0x72b}, /* 83 */
|
||
|
{ 0x732, 0x732, 0x72b, 0x739}, /* 84 */
|
||
|
{ 0x732, 0x747, 0x732, 0x732}, /* 85 */
|
||
|
{ 0x732, 0x732, 0x755, 0x794}, /* 86 */
|
||
|
{ 0x732, 0x74e, 0x732, 0x78d}, /* 87 */
|
||
|
{ 0x747, 0x732, 0x747, 0x740}, /* 88 */
|
||
|
{ 0x747, 0x747, 0x732, 0x76a}, /* 89 */
|
||
|
{ 0x747, 0x72b, 0x755, 0x747}, /* 90 */
|
||
|
{ 0x747, 0x786, 0x732, 0x747}, /* 91 */
|
||
|
{ 0x74e, 0x74e, 0x72b, 0x794}, /* 92 */
|
||
|
{ 0x74e, 0x755, 0x732, 0x74e}, /* 93 */
|
||
|
{ 0x74e, 0x72b, 0x786, 0x747}, /* 94 */
|
||
|
{ 0x74e, 0x74e, 0x732, 0x794}, /* 95 */
|
||
|
{ 0x76a, 0x76a, 0x74e, 0x74e}, /* 96 */
|
||
|
{ 0x76a, 0x794, 0x732, 0x76a}, /* 97 */
|
||
|
{ 0x76a, 0x732, 0x786, 0x76a}, /* 98 */
|
||
|
{ 0x76a, 0x786, 0x732, 0x78d}, /* 99 */
|
||
|
{ 0x78d, 0x78d, 0x74e, 0x794}, /* 100 */
|
||
|
{ 0x78d, 0x732, 0x739, 0x747}, /* 101 */
|
||
|
{ 0x78d, 0x732, 0x786, 0x76a}, /* 102 */
|
||
|
{ 0x78d, 0x786, 0x78d, 0x794}, /* 103 */
|
||
|
{ 0x786, 0x786, 0x740, 0x732}, /* 104 */
|
||
|
{ 0x786, 0x786, 0x72b, 0x732}, /* 105 */
|
||
|
{ 0x786, 0x732, 0x786, 0x786}, /* 106 */
|
||
|
{ 0x786, 0x786, 0x78d, 0x794}, /* 107 */
|
||
|
{ 0x778, 0x778, 0x77f, 0x778}, /* 108 */
|
||
|
{ 0x778, 0x77f, 0x778, 0x77f}, /* 109 */
|
||
|
{ 0x778, 0x77f, 0x77f, 0x778}, /* 110 */
|
||
|
{ 0x778, 0x778, 0x778, 0x77f}, /* 111 */
|
||
|
{ 0x75c, 0x71d, 0x75c, 0x724}, /* 112 */
|
||
|
{ 0x75c, 0x72b, 0x75c, 0x763}, /* 113 */
|
||
|
{ 0x75c, 0x75c, 0x771, 0x71d}, /* 114 */
|
||
|
{ 0x75c, 0x771, 0x75c, 0x75c}, /* 115 */
|
||
|
{ 0x771, 0x771, 0x75c, 0x71d}, /* 116 */
|
||
|
{ 0x771, 0x747, 0x75c, 0x771}, /* 117 */
|
||
|
{ 0x771, 0x75c, 0x771, 0x724}, /* 118 */
|
||
|
{ 0x771, 0x771, 0x75c, 0x763}, /* 119 */
|
||
|
{ 0x71d, 0x71d, 0x771, 0x724}, /* 120 */
|
||
|
{ 0x71d, 0x74e, 0x763, 0x71d}, /* 121 */
|
||
|
{ 0x71d, 0x724, 0x794, 0x71d}, /* 122 */
|
||
|
{ 0x71d, 0x71d, 0x75c, 0x78d}, /* 123 */
|
||
|
{ 0x794, 0x724, 0x75c, 0x794}, /* 124 */
|
||
|
{ 0x794, 0x794, 0x75c, 0x71d}, /* 125 */
|
||
|
{ 0x794, 0x724, 0x794, 0x71d}, /* 126 */
|
||
|
{ 0x794, 0x794, 0x771, 0x78d}, /* 127 */
|
||
|
{ 0x30b879b, 0x308879b, 0x311879b, 0x312879b}, /* 128 */
|
||
|
{ 0x79b, 0x315879b, 0x30d879b, 0x316879b}, /* 129 */
|
||
|
{ 0x30d879b, 0x313879b, 0x309879b, 0x79b}, /* 130 */
|
||
|
{ 0x30a879b, 0x30b879b, 0x310879b, 0x30b879b}, /* 131 */
|
||
|
{ 0x7a2, 0x30b87a2, 0x30987a2, 0x31287a2}, /* 132 */
|
||
|
{ 0x31187a2, 0x30d87a2, 0x30987a2, 0x31587a2}, /* 133 */
|
||
|
{ 0x30b87a2, 0x30887a2, 0x30a87a2, 0x31687a2}, /* 134 */
|
||
|
{ 0x31387a2, 0x31187a2, 0x31087a2, 0x31487a2}, /* 135 */
|
||
|
{ 0x30b87a9, 0x7a9, 0x31387a9, 0x31587a9}, /* 136 */
|
||
|
{ 0x31387a9, 0x30d87a9, 0x30887a9, 0x31187a9}, /* 137 */
|
||
|
{ 0x30987a9, 0x30b87a9, 0x30d87a9, 0x31487a9}, /* 138 */
|
||
|
{ 0x30d87a9, 0x7a9, 0x30b87a9, 0x31087a9}, /* 139 */
|
||
|
{ 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 140 */
|
||
|
{ 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 141 */
|
||
|
{ 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 142 */
|
||
|
{ 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 143 */
|
||
|
{ 0x30987b7, 0x30b87b7, 0x31387b7, 0x31187b7}, /* 144 */
|
||
|
{ 0x30b87b7, 0x7b7, 0x31587b7, 0x31087b7}, /* 145 */
|
||
|
{ 0x30d87b7, 0x31487b7, 0x30987b7, 0x30b87b7}, /* 146 */
|
||
|
{ 0x7b7, 0x30887b7, 0x31387b7, 0x30b87b7}, /* 147 */
|
||
|
{ 0x30b87be, 0x30987be, 0x30d87be, 0x7be}, /* 148 */
|
||
|
{ 0x30d87be, 0x31487be, 0x31287be, 0x31587be}, /* 149 */
|
||
|
{ 0x31187be, 0x31087be, 0x31387be, 0x30b87be}, /* 150 */
|
||
|
{ 0x7be, 0x30b87be, 0x30887be, 0x30987be}, /* 151 */
|
||
|
{ 0x30a87c5, 0x30b87c5, 0x31687c5, 0x31087c5}, /* 152 */
|
||
|
{ 0x30b87c5, 0x30887c5, 0x31487c5, 0x30a87c5}, /* 153 */
|
||
|
{ 0x7c5, 0x31287c5, 0x30d87c5, 0x30a87c5}, /* 154 */
|
||
|
{ 0x30987c5, 0x31087c5, 0x7c5, 0x31587c5}, /* 155 */
|
||
|
{ 0x30a87cc, 0x31587cc, 0x31287cc, 0x31487cc}, /* 156 */
|
||
|
{ 0x30d87cc, 0x7cc, 0x31087cc, 0x31687cc}, /* 157 */
|
||
|
{ 0x30b87cc, 0x30887cc, 0x31187cc, 0x30b87cc}, /* 158 */
|
||
|
{ 0x30987cc, 0x31387cc, 0x30d87cc, 0x30a87cc}, /* 159 */
|
||
|
{ 0x30b87d3, 0x30987d3, 0x31487d3, 0x31687d3}, /* 160 */
|
||
|
{ 0x30d87d3, 0x31387d3, 0x31587d3, 0x31187d3}, /* 161 */
|
||
|
{ 0x30a87d3, 0x30887d3, 0x7d3, 0x31087d3}, /* 162 */
|
||
|
{ 0x31587d3, 0x30b87d3, 0x31687d3, 0x7d3}, /* 163 */
|
||
|
/* the extra things follow */
|
||
|
{ 0x6e5, 0x6e5, 0x6e5, 0x6e5}, /* 0 */
|
||
|
{ 0x6e5, 0x6e5, 0x6fa, 0x708}, /* 1 */
|
||
|
{ 0x6e5, 0x70f, 0x6e5, 0x6e5}, /* 2 */
|
||
|
{ 0x6e5, 0x708, 0x701, 0x6e5}, /* 3 */
|
||
|
{ 0x708, 0x708, 0x708, 0x6e5}, /* 4 */
|
||
|
{ 0x708, 0x6e5, 0x70f, 0x701}, /* 5 */
|
||
|
{ 0x708, 0x70f, 0x708, 0x6fa}, /* 6 */
|
||
|
{ 0x708, 0x708, 0x708, 0x6e5}, /* 7 */
|
||
|
{ 0x70f, 0x70f, 0x70f, 0x70f}, /* 8 */
|
||
|
{ 0x70f, 0x70f, 0x6e5, 0x6e5}, /* 9 */
|
||
|
{ 0x70f, 0x708, 0x70f, 0x6e5}, /* 10 */
|
||
|
{ 0x70f, 0x70f, 0x708, 0x6e5}, /* 11 */
|
||
|
{ 0x6fa, 0x708, 0x701, 0x6fa}, /* 12 */
|
||
|
{ 0x6fa, 0x701, 0x6fa, 0x6e5}, /* 13 */
|
||
|
{ 0x6fa, 0x6fa, 0x6fa, 0x6e5}, /* 14 */
|
||
|
{ 0x6fa, 0x6fa, 0x6fa, 0x701}, /* 15 */
|
||
|
{ 0x701, 0x708, 0x6ec, 0x6fa}, /* 16 */
|
||
|
{ 0x701, 0x6f3, 0x716, 0x70f}, /* 17 */
|
||
|
{ 0x701, 0x6fa, 0x6f3, 0x6ec}, /* 18 */
|
||
|
{ 0x701, 0x6f3, 0x6fa, 0x716}, /* 19 */
|
||
|
{ 0x6ec, 0x6ec, 0x716, 0x701}, /* 20 */
|
||
|
{ 0x6ec, 0x6f3, 0x6f3, 0x6e5}, /* 21 */
|
||
|
{ 0x6ec, 0x716, 0x6f3, 0x6ec}, /* 22 */
|
||
|
{ 0x6ec, 0x6e5, 0x6fa, 0x716}, /* 23 */
|
||
|
{ 0x6f3, 0x708, 0x716, 0x6fa}, /* 24 */
|
||
|
{ 0x6f3, 0x6ec, 0x6f3, 0x70f}, /* 25 */
|
||
|
{ 0x6f3, 0x716, 0x6f3, 0x6ec}, /* 26 */
|
||
|
{ 0x6f3, 0x701, 0x6fa, 0x716}, /* 27 */
|
||
|
{ 0x716, 0x70f, 0x716, 0x6fa}, /* 28 */
|
||
|
{ 0x716, 0x6f3, 0x716, 0x708}, /* 29 */
|
||
|
{ 0x716, 0x716, 0x6f3, 0x6ec}, /* 30 */
|
||
|
{ 0x716, 0x701, 0x6fa, 0x716}, /* 31 */
|
||
|
};
|