(march): Add the ability mine using 'd' while in the march command.
This is the same feature that was added to navi().
This commit is contained in:
parent
fa90c1921f
commit
274c8e423c
1 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue