From eb4adc93ffc072da7ab1c561fc84e896b7c70d12 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 8 Jan 2013 15:52:27 +0100 Subject: [PATCH] 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. --- src/lib/commands/setsect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/setsect.c b/src/lib/commands/setsect.c index 390c0f46..995fadc7 100644 --- a/src/lib/commands/setsect.c +++ b/src/lib/commands/setsect.c @@ -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;