Fix setsector not to disclose number of landmines to occupier
When the deity sets the number of mines with setsector, the sector owner (if any) is told the resulting number of mines. Even for occupied sectors, where mines belong to the old owner, and thus shouldn't be disclosed. Oops. Fix setsector not to tell the sector owner anything then.
This commit is contained in:
parent
6fbc291272
commit
eb4adc93ff
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ setsector(void)
|
|||
current = 0;
|
||||
if (current > MINES_MAX)
|
||||
current = MINES_MAX;
|
||||
if (sect.sct_own != 0)
|
||||
if (sect.sct_own != 0 && sect.sct_own == sect.sct_oldown)
|
||||
resnoise(§, 1, "Mines", sect.sct_mines, current);
|
||||
sect.sct_mines = current;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue