1 /* 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/>. 6 */ 7 8 /** @file genland.h Table used to generate deserts and/or rain forests. */ 9 10 #define M(x, y) {x, y} 11 12 static const TileIndexDiffC _make_desert_or_rainforest_data[] = { 13 M(-5, -5), 14 M(-4, -5), 15 M(-3, -5), 16 M(-2, -5), 17 M(-1, -5), 18 M( 0, -5), 19 M( 1, -5), 20 M( 2, -5), 21 M( 3, -5), 22 M( 4, -5), 23 M( 5, -5), 24 M(-5, -4), 25 M(-4, -4), 26 M(-3, -4), 27 M(-2, -4), 28 M(-1, -4), 29 M( 0, -4), 30 M( 1, -4), 31 M( 2, -4), 32 M( 3, -4), 33 M( 4, -4), 34 M( 5, -4), 35 M(-5, -3), 36 M(-4, -3), 37 M(-3, -3), 38 M(-2, -3), 39 M(-1, -3), 40 M( 0, -3), 41 M( 1, -3), 42 M( 2, -3), 43 M( 3, -3), 44 M( 4, -3), 45 M( 5, -3), 46 M(-5, -2), 47 M(-4, -2), 48 M(-3, -2), 49 M(-2, -2), 50 M(-1, -2), 51 M( 0, -2), 52 M( 1, -2), 53 M( 2, -2), 54 M( 3, -2), 55 M( 4, -2), 56 M( 5, -2), 57 M(-5, -1), 58 M(-4, -1), 59 M(-3, -1), 60 M(-2, -1), 61 M(-1, -1), 62 M( 0, -1), 63 M( 1, -1), 64 M( 2, -1), 65 M( 3, -1), 66 M( 4, -1), 67 M( 5, -1), 68 M(-5, 0), 69 M(-4, 0), 70 M(-3, 0), 71 M(-2, 0), 72 M(-1, 0), 73 M( 0, 0), 74 M( 1, 0), 75 M( 2, 0), 76 M( 3, 0), 77 M( 4, 0), 78 M( 5, 0), 79 M(-5, 1), 80 M(-4, 1), 81 M(-3, 1), 82 M(-2, 1), 83 M(-1, 1), 84 M( 0, 1), 85 M( 1, 1), 86 M( 2, 1), 87 M( 3, 1), 88 M( 4, 1), 89 M( 5, 1), 90 M(-5, 2), 91 M(-4, 2), 92 M(-3, 2), 93 M(-2, 2), 94 M(-1, 2), 95 M( 0, 2), 96 M( 1, 2), 97 M( 2, 2), 98 M( 3, 2), 99 M( 4, 2), 100 M( 5, 2), 101 M(-5, 3), 102 M(-4, 3), 103 M(-3, 3), 104 M(-2, 3), 105 M(-1, 3), 106 M( 0, 3), 107 M( 1, 3), 108 M( 2, 3), 109 M( 3, 3), 110 M( 4, 3), 111 M( 5, 3), 112 M(-5, 4), 113 M(-4, 4), 114 M(-3, 4), 115 M(-2, 4), 116 M(-1, 4), 117 M( 0, 4), 118 M( 1, 4), 119 M( 2, 4), 120 M( 3, 4), 121 M( 4, 4), 122 M( 5, 4), 123 M(-5, 5), 124 M(-4, 5), 125 M(-3, 5), 126 M(-2, 5), 127 M(-1, 5), 128 M( 0, 5), 129 M( 1, 5), 130 M( 2, 5), 131 M( 3, 5), 132 M( 4, 5), 133 M( 5, 5), 134 M( 6, -3), 135 M(-6, -3), 136 M(-3, 6), 137 M(-3, -6), 138 M( 6, -2), 139 M(-6, -2), 140 M(-2, 6), 141 M(-2, -6), 142 M( 6, -1), 143 M(-6, -1), 144 M(-1, 6), 145 M(-1, -6), 146 M( 6, 0), 147 M(-6, 0), 148 M( 0, 6), 149 M( 0, -6), 150 M( 6, 1), 151 M(-6, 1), 152 M( 1, 6), 153 M( 1, -6), 154 M( 6, 2), 155 M(-6, 2), 156 M( 2, 6), 157 M( 2, -6), 158 M( 6, 3), 159 M(-6, 3), 160 M( 3, 6), 161 M( 3, -6) 162 }; 163 164 165 166 #undef M 167