Fix: Restrict village spawn search to selected quadrant

This commit is contained in:
hdmaniak
2026-03-27 07:07:22 +01:00
parent 0684a60c67
commit 3e7222b5fc
-3
View File
@@ -1384,9 +1384,6 @@ public function getBestOasisCropBonus($x, $y) {
$numberOfVillages -= $resultedRows;
$count++;
//If there are no more free cells in that sector, it have to be changed
//This instruction will be used only (in the next cicle(s)) if not all wids have been generated yet
if ($count > intval(WORLD_MAX / 10)) $sector = rand(1, 4);
}
foreach($villages as $village) $wids[] = $village['id'];