From 6a07beb3cb3fa517a01c7e3df598780f4b5b6c14 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Thu, 29 Jun 2006 03:36:14 +0000 Subject: [PATCH] (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. --- src/lib/commands/navi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/navi.c b/src/lib/commands/navi.c index 393f7e9b..62cf816f 100644 --- a/src/lib/commands/navi.c +++ b/src/lib/commands/navi.c @@ -170,7 +170,7 @@ navi(void) * fall through */ 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); skip = 1; break;