]> git.pond.sub.org Git - empserver/commitdiff
(march): Add the ability mine using 'd' while in the march command.
authorRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 13:38:42 +0000 (13:38 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 13:38:42 +0000 (13:38 +0000)
This is the same feature that was added to navi().

src/lib/commands/marc.c

index 28cf46699ca777b941297538e887546cb3fb08e2..e9c831806ecb4f60ae63ef0c44e76da124bcae20 100644 (file)
@@ -173,11 +173,21 @@ march(void)
            llook();
            player->btused++;
            break;
+       case 'd':
+           if (ac == 2) {
+               player->argp[2] = player->argp[1];
+               sprintf(dp, "%d", lnd->lnd_uid);
+               player->argp[1] = dp;
+           }
+           landmine();
+           skip = 1;
+           player->btused++;
+           break;
        default:
            direrr("`%c' to stop", 0, 0);
            pr(", `i' to list units, `f' to change leader,\n");
            pr("`r' to radar, `l' to look, `M' to map, `B' to bmap,\n");
-           pr("and `m' to minesweep\n");
+           pr("`d' to drop mines, and `m' to minesweep\n");
            stopping = 1;
        }
     }