Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 11 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | */ |
42 | */ |
43 | U8 map_map[0x2C][0x20]; |
43 | U8 map_map[0x2C][0x20]; |
44 | U8 map_eflg[0x100]; |
44 | U8 map_eflg[0x100]; |
45 | U8 map_frow; |
45 | U8 map_frow; |
46 | U8 map_tilesBank; |
46 | U8 map_tilesBank; |
- | 47 | ||
- | 48 | extern U8 want_last_submap; |
|
47 | 49 | ||
48 | 50 | ||
49 | /* |
51 | /* |
50 | * prototypes |
52 | * prototypes |
51 | */ |
53 | */ |
Line 78... | Line 80... | ||
78 | for (k = 0, l = 0; k < 0x04; k++) |
80 | for (k = 0, l = 0; k < 0x04; k++) |
79 | { |
81 | { |
80 | /* expand one block */ |
82 | /* expand one block */ |
81 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
83 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
82 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
84 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
83 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
85 | map_map[row][col++] = map_blocks[map_bnums[pbnum]][l++]; |
84 | map_map[row][col] = map_blocks[map_bnums[pbnum]][l++]; |
86 | map_map[row][col] = map_blocks[map_bnums[pbnum]][l++]; |
85 | row += 1; |
87 | row += 1; |
86 | col -= 3; |
88 | col -= 3; |
87 | } |
89 | } |
88 | 90 | ||
Line 91... | Line 93... | ||
91 | pbnum++; |
93 | pbnum++; |
92 | } |
94 | } |
93 | 95 | ||
94 | row += 4; |
96 | row += 4; |
95 | col = 0; |
97 | col = 0; |
96 | } |
98 | } |
97 | } |
99 | } |
98 | 100 | ||
99 | 101 | ||
100 | /* |
102 | /* |
101 | * Initialize a new submap |
103 | * Initialize a new submap |
102 | * |
104 | * |
Line 174... | Line 176... | ||
174 | else |
176 | else |
175 | { |
177 | { |
176 | /* next submap */ |
178 | /* next submap */ |
177 | map_frow = map_frow - map_connect[c].rowout + map_connect[c].rowin; |
179 | map_frow = map_frow - map_connect[c].rowout + map_connect[c].rowin; |
178 | game_submap = map_connect[c].submap; |
180 | game_submap = map_connect[c].submap; |
- | 181 | if (want_last_submap) |
|
- | 182 | { |
|
- | 183 | sysarg_args_map = game_map; |
|
- | 184 | sysarg_args_submap = game_submap; |
|
- | 185 | } |
|
179 | return TRUE; |
186 | return TRUE; |
180 | } |
187 | } |
181 | } |
188 | } |
182 | 189 | ||
183 | 190 |