From 4f9c16449956a7258df75eb36ac1cd76aa77774b Mon Sep 17 00:00:00 2001 From: SMUnlimited Date: Sat, 24 Feb 2024 17:46:51 +0000 Subject: [PATCH] Double expansion check should return true only if there are mines --- Jobs/DETECT_DOUBLE_EXP.eai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jobs/DETECT_DOUBLE_EXP.eai b/Jobs/DETECT_DOUBLE_EXP.eai index 12dee2d6c..87ad2cdc8 100644 --- a/Jobs/DETECT_DOUBLE_EXP.eai +++ b/Jobs/DETECT_DOUBLE_EXP.eai @@ -74,7 +74,7 @@ function CheckDoubleExpansionsClaimedInArea takes real tx, real ty returns boole set g = null set u = null call Trace("Total Mines:" + Int2Str(minecount) + " Claimed Mines:" + Int2Str(claimedMines)) - return claimedMines > minecount + return minecount > 0 and claimedMines > minecount endfunction // Beware Does not include own halls and mines in this check