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

an user specified ship number.
Without an user specified ship number it will still default to the flagship.
This will make map and bmap commands consistent with commands
like radar, sonar and look.
This commit is contained in:
Ron Koenderink 2006-06-29 03:36:14 +00:00
parent ed176d8856
commit 6a07beb3cb

View file

@ -170,7 +170,7 @@ navi(void)
* fall through * fall through
*/ */
case 'M': case 'M':
unit_map(EF_SHIP, shp->shp_uid, &ns, &origin); unit_map(EF_SHIP, atoi(player->argp[1]), &ns, &origin);
draw_map(bmap_flag, origin, MAP_SHIP, &ns); draw_map(bmap_flag, origin, MAP_SHIP, &ns);
skip = 1; skip = 1;
break; break;