From 2438fe7c9c5a44df4554749ccabb46552be3bd40 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 28 Jun 2006 19:02:21 +0000 Subject: [PATCH] (navi): Add the ability mine using 'd' while in the navigate command. --- src/lib/commands/navi.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/navi.c b/src/lib/commands/navi.c index 7b5583906..ba36ce8d8 100644 --- a/src/lib/commands/navi.c +++ b/src/lib/commands/navi.c @@ -206,11 +206,21 @@ navi(void) player->btused++; skip = 1; break; + case 'd': + if (ac == 2) { + player->argp[2] = player->argp[1]; + sprintf(dp, "%d", shp->shp_uid); + player->argp[1] = dp; + } + mine(); + skip = 1; + player->btused++; + break; default: direrr("`%c' to stop", ", `%c' to view, ", 0); pr("`i' to list ships, `f' to change flagship,\n"); pr("`r' to radar, `s' to sonar, `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