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

src/lib/commands/marc.c

index e9c831806ecb4f60ae63ef0c44e76da124bcae20..d9c08099cd250e1ae345de79624c7718cca6d897 100644 (file)
@@ -142,7 +142,7 @@ march(void)
             * fall through
             */
        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);
            skip = 1;
            break;