… | |
… | |
223 | break; |
223 | break; |
224 | } |
224 | } |
225 | } |
225 | } |
226 | |
226 | |
227 | if (!hole_type) |
227 | if (!hole_type) |
228 | hole_type = rmg_rndm (NR_OF_HOLE_TYPES) + 1; |
228 | hole_type = rmg_rndm (1, NR_OF_HOLE_TYPES); |
229 | |
229 | |
230 | const char *style, *decor, *mon; |
230 | const char *style, *decor, *mon; |
231 | int g_xsize, g_ysize; |
231 | int g_xsize, g_ysize; |
232 | |
232 | |
233 | switch (hole_type) |
233 | switch (hole_type) |
… | |
… | |
313 | } |
313 | } |
314 | |
314 | |
315 | void |
315 | void |
316 | place_specials_in_map (maptile *map, layout &maze, random_map_params *RP) |
316 | place_specials_in_map (maptile *map, layout &maze, random_map_params *RP) |
317 | { |
317 | { |
318 | switch (rmg_rndm (NUM_OF_SPECIAL_TYPES)) |
318 | switch (rmg_rndm (NUM_OF_SPECIAL_TYPES)) // can be NO_SPECIAL as well |
319 | { |
319 | { |
320 | case SPECIAL_SUBMAP: |
320 | case SPECIAL_SUBMAP: |
321 | { |
321 | { |
322 | /* includes a special map into the random map being made. */ |
322 | /* includes a special map into the random map being made. */ |
323 | maptile *special_map = find_style ("/styles/specialmaps", 0, RP->difficulty, true); |
323 | maptile *special_map = find_style ("/styles/specialmaps", 0, RP->difficulty, true); |