… | |
… | |
339 | * Mark Wedel |
339 | * Mark Wedel |
340 | */ |
340 | */ |
341 | void |
341 | void |
342 | draw_magic_map (object *pl) |
342 | draw_magic_map (object *pl) |
343 | { |
343 | { |
344 | char *map_mark; |
|
|
345 | int xmin, xmax, ymin, ymax; |
344 | int xmin, xmax, ymin, ymax; |
346 | |
345 | |
347 | if (pl->type != PLAYER) |
346 | if (pl->type != PLAYER) |
348 | { |
347 | { |
349 | LOG (llevError, "Non player object called draw_map.\n"); |
348 | LOG (llevError, "Non player object called draw_map.\n"); |
350 | return; |
349 | return; |
351 | } |
350 | } |
352 | |
351 | |
353 | map_mark = (char *)calloc (MAGIC_MAP_SIZE * MAGIC_MAP_SIZE, 1); |
352 | char *map_mark = (char *)calloc (MAGIC_MAP_SIZE * MAGIC_MAP_SIZE, 1); |
354 | assert(("Out of memory!", map_mark != NULL)); |
353 | assert(("Out of memory!", map_mark != NULL)); |
355 | |
354 | |
356 | /* First, we figure out what spaces are 'reachable' by the player */ |
355 | /* First, we figure out what spaces are 'reachable' by the player */ |
357 | magic_mapping_mark (pl, map_mark, 3); |
356 | magic_mapping_mark (pl, map_mark, 3); |
358 | |
357 | |