palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / maps / spawn_russia.c
blob28523e487913ec579d724b97f3643ce080957be9
1 #include "../enemy.h"
3 #define NUM_SCREENS 38
4 #define MAP_NAME russia
5 #ifndef SPAWN_ENTRY
6 #define PASTE4(a, b, c, d) a ## b ## c ## d
7 #define SPAWN_ENTRY2(mapname, index) PASTE4(spawn_,mapname,_screen,index)
8 #define SPAWN_ENTRY(index) SPAWN_ENTRY2(MAP_NAME, index)
9 #define PASTE2(a, b) a ## b
10 #define SPAWN_MAP1(mapname) PASTE2(spawn_screens_, mapname)
11 #define SPAWN_MAP SPAWN_MAP1(MAP_NAME)
12 #endif
14 static const struct enemy_spawn SPAWN_ENTRY(1)[] = {
17 const struct enemy_spawn_screen SPAWN_MAP[NUM_SCREENS] = {
18 [1] = {
19 .num_spawns = 0,
20 .spawns = SPAWN_ENTRY(1),
22 [0] = {
23 .num_spawns = 0,
24 .spawns = 0,
28 #undef MAP_NAME