mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Misc
* fix some outdated array indizes during setup * fix indexing when connecting to DB for first time * add initial loading of config strings during setup
This commit is contained in:
@@ -103,7 +103,7 @@ SqlGen::register(new class extends SetupScript
|
||||
// spawn does not really match on a map, but we need at least one result
|
||||
if (!$result)
|
||||
{
|
||||
usort($points, function ($a, $b) { return ($a['quality'] < $b['quality']) ? -1 : 1; });
|
||||
usort($points, function ($a, $b) { return ($a['dist'] < $b['dist']) ? -1 : 1; });
|
||||
$result = [1.0, $points[0]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user