Skip to content

Commit

Permalink
Double expansion check should return true only if there are mines
Browse files Browse the repository at this point in the history
  • Loading branch information
SMUnlimited committed Feb 24, 2024
1 parent cfec1bf commit 4f9c164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jobs/DETECT_DOUBLE_EXP.eai
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f9c164

Please sign in to comment.