]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/marc.c
(march): Add the ability mine using 'd' while in the march command.
[empserver] / 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;
        }
     }