(navi): Add the ability mine using 'd' while in the navigate command.

This commit is contained in:
Ron Koenderink 2006-06-28 19:02:21 +00:00
parent 0c12d837cb
commit 2438fe7c9c

View 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;
}
}