(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:
Ron Koenderink 2006-06-29 13:38:42 +00:00
parent fa90c1921f
commit 274c8e423c

View file

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