From da523f2deb6df6b1629071209aa02e42f330417c Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 3 Apr 2024 20:44:08 +0100 Subject: [PATCH] Added clarifying comment --- project/src/controllers/WeatherController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/WeatherController.ts b/project/src/controllers/WeatherController.ts index dbaa3be2..becef9f5 100644 --- a/project/src/controllers/WeatherController.ts +++ b/project/src/controllers/WeatherController.ts @@ -24,7 +24,7 @@ export class WeatherController /** Handle client/weather */ public generate(): IWeatherData { - let result: IWeatherData = { acceleration: 0, time: "", date: "", weather: null, season: 1 }; + let result: IWeatherData = { acceleration: 0, time: "", date: "", weather: null, season: 1 }; // defaults, hydrated below result = this.weatherGenerator.calculateGameTime(result); result.weather = this.weatherGenerator.generateWeather();