mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 13:02:39 +00:00
format
This commit is contained in:
@@ -159,8 +159,8 @@ export class UnitGrid {
|
||||
if (!unit.isActive()) continue;
|
||||
const distSquared = this.squaredDistanceFromTile(unit, tile);
|
||||
if (distSquared > rangeSquared) continue;
|
||||
// eslint-disable-next-line sort-keys
|
||||
const value = { unit, distSquared };
|
||||
|
||||
const value = { distSquared, unit };
|
||||
if (predicate !== undefined && !predicate(value)) continue;
|
||||
nearby.push(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user