(navi): Add the ability mine using 'd' while in the navigate command.
This commit is contained in:
parent
0c12d837cb
commit
2438fe7c9c
1 changed files with 11 additions and 1 deletions
|
@ -206,11 +206,21 @@ navi(void)
|
||||||
player->btused++;
|
player->btused++;
|
||||||
skip = 1;
|
skip = 1;
|
||||||
break;
|
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:
|
default:
|
||||||
direrr("`%c' to stop", ", `%c' to view, ", 0);
|
direrr("`%c' to stop", ", `%c' to view, ", 0);
|
||||||
pr("`i' to list ships, `f' to change flagship,\n");
|
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("`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;
|
stopping = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue