From 274c8e423c9d60386ee4439103032d7a27feaffc Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Thu, 29 Jun 2006 13:38:42 +0000 Subject: [PATCH] (march): Add the ability mine using 'd' while in the march command. This is the same feature that was added to navi(). --- src/lib/commands/marc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/marc.c b/src/lib/commands/marc.c index 28cf46699..e9c831806 100644 --- a/src/lib/commands/marc.c +++ b/src/lib/commands/marc.c @@ -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; } } -- 2.43.0