Fix sorting distance artefact village

This commit is contained in:
Shadowss
2013-10-25 09:49:57 +03:00
parent 989daecb93
commit 31b6a4deb2
+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);