(do_map): New. map() was split into two parts map() and do_map().
(map): Call new function do_map(). (display_region_map): Modify to use do_map() instead of map(). (tran_nmap, tran_pmap, cmd_move_map): Modify to accomodate the modified display_region_map() function.
This commit is contained in:
parent
fa38aef700
commit
51275c753f
5 changed files with 76 additions and 70 deletions
|
@ -246,12 +246,12 @@ tran_plane(void)
|
|||
static int
|
||||
tran_pmap(coord curx, coord cury, char *arg)
|
||||
{
|
||||
return display_region_map("pmap", curx, cury, arg);
|
||||
return display_region_map(0, EF_PLANE, curx, cury, arg);
|
||||
}
|
||||
|
||||
static int
|
||||
tran_nmap(coord curx, coord cury, char *arg)
|
||||
{
|
||||
return display_region_map("nmap", curx, cury, arg);
|
||||
return display_region_map(0, EF_NUKE, curx, cury, arg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue