]> git.pond.sub.org Git - empserver/commitdiff
(navi): Modify map and bmap command options for navi() to support
authorRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 03:36:14 +0000 (03:36 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 03:36:14 +0000 (03:36 +0000)
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

index 393f7e9bca09f9ac517992eccad95c842616c58c..62cf816f3dde30eb75295e7a74ee39723ca37bc5 100644 (file)
@@ -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;