]> git.pond.sub.org Git - empserver/commitdiff
(navi): Add the ability mine using 'd' while in the navigate command.
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 28 Jun 2006 19:02:21 +0000 (19:02 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 28 Jun 2006 19:02:21 +0000 (19:02 +0000)
src/lib/commands/navi.c

index 7b55839065a861219881686d9a67030852632ab6..ba36ce8d8c211de2bffc92ac2a8708ec4fb3093b 100644 (file)
@@ -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;
        }
     }