mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 13:46:09 +00:00
Merge pull request #413 from Shadowss/patch-84
Fix sorting distance artefact village
This commit is contained in:
@@ -111,12 +111,12 @@
|
||||
$coor2 = mysql_fetch_assoc($query);
|
||||
|
||||
|
||||
$dist = haversine($coor['x'], $coor['y'], $coor2['x'], $coor2['y']);
|
||||
$dist = round(getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']),1);
|
||||
|
||||
$rows[$dist] = $row;
|
||||
|
||||
}
|
||||
ksort($rows, SORT_DESC);
|
||||
ksort($rows);
|
||||
foreach($rows as $row) {
|
||||
$wref = $village->wid;
|
||||
$coor = $database->getCoor($wref);
|
||||
|
||||
Reference in New Issue
Block a user