palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / walls.c
blob542027d75977f7067ad64d9a5ef774e3059eff2d
1 #include "walls.h"
3 const enum walltype walls[MT_MAX][210] = {
4 [MT_FOREST] = {
5 [1] = WT_SOLID,
6 [2] = WT_SOLID,
7 [3] = WT_SOLID,
8 [4] = WT_SOLID,
9 [5] = WT_SOLID,
10 [6] = WT_SOLID,
11 [7] = WT_SOLID,
12 [8] = WT_SOLID,
13 [9] = WT_SOLID,
14 [10] = WT_SOLID,
15 [11] = WT_SOLID,
16 [12] = WT_SOLID,
17 [13] = WT_SOLID,
18 [14] = WT_SOLID,
19 [15] = WT_SOLID,
20 [16] = WT_SOLID,
21 [17] = WT_SOLID,
22 [18] = WT_SOLID,
23 [19] = WT_SOLID,
24 [20] = WT_SOLID,
25 [21] = WT_SOLID,
26 [22] = WT_SOLID,
27 [23] = WT_SOLID,
28 [24] = WT_SOLID,
29 [25] = WT_SOLID,
30 [26] = WT_SOLID,
31 [27] = WT_SOLID,
32 [28] = WT_SOLID,
33 [29] = WT_SOLID,
34 [30] = WT_SOLID,
35 [31] = WT_SOLID,
36 [32] = WT_SOLID,
37 [33] = WT_SOLID,
38 [34] = WT_SOLID,
39 [35] = WT_SOLID,
40 [36] = WT_SOLID,
41 [37] = WT_SOLID,
42 [38] = WT_SOLID,
43 [39] = WT_SOLID,
44 [40] = WT_SOLID,
45 [41] = WT_SOLID,
46 [42] = WT_SOLID,
47 [43] = WT_SOLID,
48 [44] = WT_SOLID,
49 [45] = WT_SOLID,
50 [46] = WT_SOLID,
51 [47] = WT_SOLID,
52 [48] = WT_SOLID,
53 [49] = WT_SOLID,
54 [50] = WT_SOLID,
55 [51] = WT_SOLID,
56 [52] = WT_SOLID,
57 [53] = WT_SOLID,
58 [54] = WT_SOLID,
59 [55] = WT_SOLID,
60 [56] = WT_SOLID,
61 [57] = WT_SOLID,
62 [58] = WT_SOLID,
63 [59] = WT_SOLID,
64 [60] = WT_SOLID,
65 [61] = WT_SOLID,
66 [62] = WT_SOLID,
67 [63] = WT_SOLID,
68 [64] = WT_SOLID,
69 [65] = WT_SOLID,
70 [66] = WT_SOLID,
71 [67] = WT_SOLID,
72 [68] = WT_SOLID,
73 [69] = WT_SOLID,
74 [70] = WT_SOLID,
75 [71] = WT_SOLID,
76 [72] = WT_SOLID,
77 [73] = WT_SOLID,
78 [74] = WT_SOLID,
79 [75] = WT_SOLID,
80 [76] = WT_SOLID,
81 [77] = WT_SOLID,
82 [78] = WT_SOLID,
83 [79] = WT_SOLID,
84 [80] = WT_SOLID,
85 [81] = WT_SOLID,
86 [82] = WT_SOLID,
87 [83] = WT_SOLID,
88 [84] = WT_SOLID,
89 [85] = WT_SOLID,
90 [86] = WT_SOLID,
91 [87] = WT_SOLID,
92 [88] = WT_SOLID,
93 [89] = WT_SOLID,
94 [90] = WT_SOLID,
95 [91] = WT_SOLID,
96 [92] = WT_SOLID,
97 [93] = WT_SOLID,
98 [94] = WT_SOLID,
99 [95] = WT_SOLID,
100 [96] = WT_SOLID,
101 [97] = WT_SOLID,
102 [98] = WT_SOLID,
103 [99] = WT_SOLID,
104 [100] = WT_SOLID,
105 [101] = WT_SOLID,
106 [102] = WT_SOLID,
107 [103] = WT_SOLID,
108 [104] = WT_SOLID,
109 [105] = WT_SOLID,
110 [106] = WT_SOLID,
111 [107] = WT_SOLID,
112 [108] = WT_SOLID,
113 [109] = WT_SOLID,
114 [110] = WT_SOLID,
115 [111] = WT_SOLID,
116 [112] = WT_SOLID,
117 [113] = WT_SOLID,
118 [114] = WT_SOLID,
119 [115] = WT_SOLID,
120 [116] = WT_SOLID,
121 [117] = WT_SOLID,
122 [118] = WT_SOLID,
123 [119] = WT_SOLID,
124 [120] = WT_SOLID,
125 [121] = WT_SOLID,
126 [122] = WT_SOLID,
127 [123] = WT_SOLID,
128 [124] = WT_SOLID,
129 [125] = WT_SOLID,
130 [126] = WT_SOLID,
131 [127] = WT_SOLID,
132 [129] = WT_SOLID,
133 [154] = WT_SOLID,
134 [196] = WT_SOLID,
135 [208] = WT_SOLID,
136 [209] = WT_SOLID,
138 [MT_URBAN] = {
139 [1] = WT_SOLID,
140 [2] = WT_SOLID,
141 [3] = WT_SOLID,
142 [4] = WT_SOLID,
143 [5] = WT_SOLID,
144 [6] = WT_SOLID,
145 [7] = WT_SOLID,
146 [8] = WT_SOLID,
147 [9] = WT_SOLID,
148 [10] = WT_SOLID,
149 [11] = WT_SOLID,
150 [12] = WT_SOLID,
151 [13] = WT_SOLID,
152 [14] = WT_SOLID,
153 [15] = WT_SOLID,
154 [16] = WT_SOLID,
155 [17] = WT_SOLID,
156 [18] = WT_SOLID,
157 [19] = WT_SOLID,
158 [20] = WT_SOLID,
159 [21] = WT_SOLID,
160 [22] = WT_SOLID,
161 [23] = WT_SOLID,
162 [24] = WT_SOLID,
163 [25] = WT_SOLID,
164 [26] = WT_SOLID,
165 [27] = WT_SOLID,
166 [28] = WT_SOLID,
167 [29] = WT_SOLID,
168 [30] = WT_SOLID,
169 [31] = WT_SOLID,
170 [32] = WT_SOLID,
171 [33] = WT_SOLID,
172 [34] = WT_SOLID,
173 [35] = WT_SOLID,
174 [36] = WT_SOLID,
175 [37] = WT_SOLID,
176 [38] = WT_SOLID,
177 [39] = WT_SOLID,
178 [40] = WT_SOLID,
179 [41] = WT_SOLID,
180 [42] = WT_SOLID,
181 [43] = WT_SOLID,
182 [44] = WT_SOLID,
183 [45] = WT_SOLID,
184 [46] = WT_SOLID,
185 [47] = WT_SOLID,
186 [48] = WT_SOLID,
187 [49] = WT_SOLID,
188 [50] = WT_SOLID,
189 [51] = WT_SOLID,
190 [52] = WT_SOLID,
191 [53] = WT_SOLID,
192 [54] = WT_SOLID,
193 [55] = WT_SOLID,
194 [56] = WT_SOLID,
195 [57] = WT_SOLID,
196 [58] = WT_SOLID,
197 [59] = WT_SOLID,
198 [60] = WT_SOLID,
199 [61] = WT_SOLID,
200 [62] = WT_SOLID,
201 [63] = WT_SOLID,
202 [64] = WT_SOLID,
203 [65] = WT_SOLID,
204 [66] = WT_SOLID,
205 [67] = WT_SOLID,
206 [68] = WT_SOLID,
207 [69] = WT_SOLID,
208 [70] = WT_SOLID,
209 [71] = WT_SOLID,
210 [72] = WT_SOLID,
211 [73] = WT_SOLID,
212 [74] = WT_SOLID,
213 [75] = WT_SOLID,
214 [76] = WT_SOLID,
215 [77] = WT_SOLID,
216 [78] = WT_SOLID,
217 [79] = WT_SOLID,
218 [80] = WT_SOLID,
219 [81] = WT_SOLID,
220 [82] = WT_SOLID,
221 [83] = WT_SOLID,
222 [84] = WT_SOLID,
223 [85] = WT_SOLID,
224 [86] = WT_SOLID,
225 [87] = WT_SOLID,
226 [88] = WT_SOLID,
227 [89] = WT_SOLID,
228 [90] = WT_SOLID,
229 [91] = WT_SOLID,
230 [92] = WT_SOLID,
231 [93] = WT_SOLID,
232 [94] = WT_SOLID,
233 [95] = WT_SOLID,
234 [96] = WT_SOLID,
235 [97] = WT_SOLID,
236 [98] = WT_SOLID,
237 [99] = WT_SOLID,
238 [100] = WT_SOLID,
239 [101] = WT_SOLID,
240 [102] = WT_SOLID,
241 [103] = WT_SOLID,
242 [104] = WT_SOLID,
243 [105] = WT_SOLID,
244 [106] = WT_SOLID,
245 [107] = WT_SOLID,
246 [108] = WT_SOLID,
247 [109] = WT_SOLID,
248 [110] = WT_SOLID,
249 [111] = WT_SOLID,
250 [112] = WT_SOLID,
251 [113] = WT_SOLID,
252 [114] = WT_SOLID,
253 [115] = WT_SOLID,
254 [116] = WT_SOLID,
255 [117] = WT_SOLID,
256 [118] = WT_SOLID,
257 [119] = WT_SOLID,
258 [120] = WT_SOLID,
259 [121] = WT_SOLID,
260 [122] = WT_SOLID,
261 [123] = WT_SOLID,
262 [124] = WT_SOLID,
263 [142] = WT_SOLID,
264 [143] = WT_SOLID,
265 [144] = WT_SOLID,
266 [145] = WT_SOLID,
267 [146] = WT_SOLID,
268 [147] = WT_SOLID,
269 [148] = WT_SOLID,
270 [149] = WT_SOLID,
271 [150] = WT_SOLID,
272 [151] = WT_SOLID,
273 [152] = WT_SOLID,
274 [153] = WT_SOLID,
275 [154] = WT_SOLID,
276 [155] = WT_SOLID,
277 [156] = WT_SOLID,
278 [157] = WT_SOLID,
279 [158] = WT_SOLID,
280 [159] = WT_SOLID,
281 [160] = WT_SOLID,
282 [161] = WT_SOLID,
283 [162] = WT_SOLID,
284 [163] = WT_SOLID,
285 [164] = WT_SOLID,
286 [165] = WT_SOLID,
287 [166] = WT_SOLID,
288 [167] = WT_SOLID,
289 [168] = WT_SOLID,
290 [169] = WT_SOLID,
291 [175] = WT_SOLID,
292 [176] = WT_SOLID,
293 [177] = WT_SOLID,
294 [207] = WT_SOLID,
296 [MT_DESERT] = {
297 [1] = WT_SOLID,
298 [2] = WT_SOLID,
299 [3] = WT_SOLID,
300 [4] = WT_SOLID,
301 [5] = WT_SOLID,
302 [6] = WT_SOLID,
303 [7] = WT_SOLID,
304 [8] = WT_SOLID,
305 [9] = WT_SOLID,
306 [10] = WT_SOLID,
307 [11] = WT_SOLID,
308 [12] = WT_SOLID,
309 [13] = WT_SOLID,
310 [14] = WT_SOLID,
311 [15] = WT_SOLID,
312 [16] = WT_SOLID,
313 [17] = WT_SOLID,
314 [18] = WT_SOLID,
315 [19] = WT_SOLID,
316 [20] = WT_SOLID,
317 [21] = WT_SOLID,
318 [22] = WT_SOLID,
319 [23] = WT_SOLID,
320 [24] = WT_SOLID,
321 [25] = WT_SOLID,
322 [26] = WT_SOLID,
323 [27] = WT_SOLID,
324 [28] = WT_SOLID,
325 [29] = WT_SOLID,
326 [30] = WT_SOLID,
327 [31] = WT_SOLID,
328 [32] = WT_SOLID,
329 [33] = WT_SOLID,
330 [34] = WT_SOLID,
331 [35] = WT_SOLID,
332 [36] = WT_SOLID,
333 [37] = WT_SOLID,
334 [38] = WT_BULLETS_PASS,
335 [39] = WT_BULLETS_PASS,
336 [40] = WT_BULLETS_PASS,
337 [41] = WT_BULLETS_PASS,
338 [42] = WT_BULLETS_PASS,
339 [43] = WT_BULLETS_PASS,
340 [44] = WT_BULLETS_PASS,
341 [45] = WT_BULLETS_PASS,
342 [46] = WT_BULLETS_PASS,
343 [47] = WT_BULLETS_PASS,
344 [48] = WT_SOLID,
345 [49] = WT_SOLID,
346 [50] = WT_SOLID,
347 [51] = WT_SOLID,
348 [52] = WT_SOLID,
349 [53] = WT_SOLID,
350 [54] = WT_SOLID,
351 [55] = WT_SOLID,
352 [56] = WT_SOLID,
353 [57] = WT_SOLID,
354 [58] = WT_SOLID,
355 [59] = WT_SOLID,
356 [60] = WT_SOLID,
357 [61] = WT_SOLID,
358 [62] = WT_SOLID,
359 [63] = WT_SOLID,
360 [64] = WT_SOLID,
361 [65] = WT_SOLID,
362 [66] = WT_SOLID,
363 [67] = WT_SOLID,
364 [68] = WT_SOLID,
365 [69] = WT_SOLID,
366 [70] = WT_SOLID,
367 [71] = WT_SOLID,
368 [72] = WT_SOLID,
369 [73] = WT_SOLID,
370 [74] = WT_SOLID,
371 [75] = WT_SOLID,
372 [76] = WT_SOLID,
373 [77] = WT_SOLID,
374 [78] = WT_SOLID,
375 [79] = WT_SOLID,
376 [80] = WT_SOLID,
377 [81] = WT_SOLID,
378 [82] = WT_SOLID,
379 [83] = WT_SOLID,
380 [84] = WT_SOLID,
381 [85] = WT_SOLID,
382 [86] = WT_SOLID,
383 [87] = WT_SOLID,
384 [88] = WT_SOLID,
385 [89] = WT_SOLID,
386 [90] = WT_SOLID,
387 [91] = WT_SOLID,
388 [92] = WT_SOLID,
389 [93] = WT_SOLID,
390 [94] = WT_SOLID,
391 [95] = WT_SOLID,
392 [96] = WT_SOLID,
393 [97] = WT_SOLID,
394 [98] = WT_SOLID,
395 [99] = WT_SOLID,
396 [100] = WT_SOLID,
397 [101] = WT_SOLID,
398 [102] = WT_SOLID,
399 [103] = WT_SOLID,
400 [104] = WT_SOLID,
401 [105] = WT_SOLID,
402 [106] = WT_SOLID,
403 [107] = WT_SOLID,
404 [108] = WT_SOLID,
405 [109] = WT_SOLID,
406 [110] = WT_SOLID,
407 [111] = WT_SOLID,
408 [112] = WT_SOLID,
409 [113] = WT_SOLID,
410 [114] = WT_SOLID,
411 [115] = WT_SOLID,
412 [116] = WT_SOLID,
413 [117] = WT_SOLID,
414 [118] = WT_SOLID,
415 [119] = WT_SOLID,
416 [120] = WT_SOLID,
417 [121] = WT_SOLID,
418 [122] = WT_SOLID,
419 [123] = WT_SOLID,
420 [124] = WT_SOLID,
421 [172] = WT_BULLETS_PASS,
422 [173] = WT_BULLETS_PASS,
423 [181] = WT_SOLID,
424 [182] = WT_SOLID,
425 [183] = WT_SOLID,
426 [184] = WT_SOLID,