mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Made separation larger for ships
This commit is contained in:
parent
e40b79d2c4
commit
535b95242c
@ -820,8 +820,8 @@ export class NavyUnitSpawnMenu extends UnitSpawnMenu {
|
||||
let initialLng = unitTable.location.lng;
|
||||
let rows = Math.floor(Math.sqrt(unitsCount))
|
||||
for (let i = 0; i < unitsCount; i++) {
|
||||
unitTable.location.lat = initialLat + i % rows * 0.0001;
|
||||
unitTable.location.lng = initialLng + Math.floor(i / rows) * 0.0001;
|
||||
unitTable.location.lat = initialLat + i % rows * 0.005;
|
||||
unitTable.location.lng = initialLng + Math.floor(i / rows) * 0.005;
|
||||
units.push(JSON.parse(JSON.stringify(unitTable)));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user