Update src/modules/military-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marc Emmanuel 2026-03-04 07:59:37 +01:00 committed by GitHub
parent 47c52c5d28
commit b9c4472aaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,7 +406,6 @@ class MilitaryModule {
): MilitaryRegiment[] => {
if (!nodes.length) return [];
nodes.sort((a, b) => a.a - b.a); // form regiments starting from cells with fewest troops
nodes.sort((a, b) => a.a - b.a); // form regiments in cells with most troops
const tree = quadtree(
nodes,
(d) => d.x,