(march): Modify map and bmap command options for march() to support

an user specified land unit number.
Without an user specified land unit number it will still default to the leader.
This will map and bmap commands consistent with commands like radar
and look. This is the same feature that was added to navi().
This commit is contained in:
Ron Koenderink 2006-06-29 13:46:03 +00:00
parent 274c8e423c
commit 4d3b9dc77a

View file

@ -142,7 +142,7 @@ march(void)
* fall through * fall through
*/ */
case 'M': case 'M':
unit_map(EF_LAND, lnd->lnd_uid, &ns, &origin); unit_map(EF_LAND, atoi(player->argp[1]), &ns, &origin);
draw_map(bmap_flag, origin, 0, &ns); draw_map(bmap_flag, origin, 0, &ns);
skip = 1; skip = 1;
break; break;