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:
Markus Armbruster 2013-01-08 15:52:27 +01:00
parent 6fbc291272
commit eb4adc93ff

View file

@ -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(&sect, 1, "Mines", sect.sct_mines, current);
sect.sct_mines = current;
break;