From b044d9a6c06dee45330af9847afaf231c00a3234 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Thu, 30 Nov 2023 15:46:48 +0100 Subject: [PATCH] Minor comments --- client/src/unit/unitsmanager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/unit/unitsmanager.ts b/client/src/unit/unitsmanager.ts index 5e8471de..1eedccbc 100644 --- a/client/src/unit/unitsmanager.ts +++ b/client/src/unit/unitsmanager.ts @@ -1113,10 +1113,10 @@ export class UnitsManager { var airbase = airbases[airbaseName]; /* Check if the city is inside the coalition area */ if (polyContains(new LatLng(airbase.getLatLng().lat, airbase.getLatLng().lng), coalitionArea)) { - /* Arbitrary formula to obtain a number of units depending on the city population */ + /* Arbitrary formula to obtain a number of units */ var pointsNumber = 2 + 40 * density / 100; for (let i = 0; i < pointsNumber; i++) { - /* Place the unit nearby the city, depending on the distribution parameter */ + /* Place the unit nearby the airbase, depending on the distribution parameter */ var bearing = Math.random() * 360; var distance = Math.random() * distribution * 100; const latlng = bearingAndDistanceToLatLng(airbase.getLatLng().lat, airbase.getLatLng().lng, bearing, distance);