mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Generale fixes
+Fixed a bug that didn't return reinforcements in counquered oasis, if it was released by the owner, or from the admin panel +Changed the catapults and rams formulas (still not completed at 100%), thanks to Kirilloid! +Changed the Natars' capital default coordinates
This commit is contained in:
@@ -855,7 +855,9 @@ class MYSQLi_DB implements IDbConnection {
|
||||
if(!is_array($coordinatesArray[0])) $coordinatesArray = [$coordinatesArray];
|
||||
|
||||
$conditions = [];
|
||||
foreach($coordinatesArray as $coordinate) $conditions[] = "(x = ".$coordinate[0]." AND y = ".$coordinate[1].")";
|
||||
foreach($coordinatesArray as $coordinate){
|
||||
$conditions[] = "(x = ".round($coordinate[0])." AND y = ".round($coordinate[1]).")";
|
||||
}
|
||||
|
||||
$q = "SELECT id FROM " . TB_PREFIX . "wdata WHERE ".implode(" OR ", $conditions);
|
||||
$result = mysqli_query($this->dblink, $q);
|
||||
|
||||
Reference in New Issue
Block a user