Don't permit landmine laying in foreign sectors
This commit is contained in:
parent
8fa4f6d507
commit
bc2989a3b3
1 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,9 @@ landmine(void)
|
|||
if (!(shells = land.lnd_item[I_SHELL]))
|
||||
continue;
|
||||
shells = MIN(shells, land.lnd_mobil);
|
||||
if (!getsect(land.lnd_x, land.lnd_y, §) ||
|
||||
sect.sct_type == SCT_WATER || sect.sct_type == SCT_BSPAN) {
|
||||
if (!getsect(land.lnd_x, land.lnd_y, §)
|
||||
|| sect.sct_type == SCT_WATER || sect.sct_type == SCT_BSPAN
|
||||
|| sect.sct_own != land.lnd_own) {
|
||||
pr("You can't lay mines there!!\n");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue