From eafbe9cee3d3e001e5a8e41111e1f99e9b233dcf Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Apr 2012 17:16:59 +0300 Subject: [PATCH] more edit for oasis populate --- GameEngine/Database/db_MYSQL.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 9960bf75..6386db29 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -529,10 +529,10 @@ function getVilWref($x, $y) { } function populateOasisUnitsHigh() { - $q2 = "SELECT * FROM " . TB_PREFIX . "odata where conqured = 0"; + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; $result2 = mysql_query($q2, $this->connection); while($row = mysql_fetch_array($result2)) { - $wid = $row['wref']; + $wid = $row['id']; $basearray = $this->getMInfo($wid); //each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less switch($basearray['oasistype']) {