Merge pull request #413 from Shadowss/patch-84

Fix sorting distance artefact village
This commit is contained in:
yi12345
2013-10-31 05:30:40 -07:00
+2 -2
View File
@@ -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);