number of fixes

This commit is contained in:
Vasyl Horbachenko
2018-10-22 02:13:38 +03:00
parent 933e064079
commit 8f4094ee98
7 changed files with 19 additions and 8 deletions

View File

@@ -127,9 +127,9 @@ class EnviromentGenerator:
# sometimes clouds are randomized way too low and need to be fixed
self.mission.weather.clouds_base = max(self.mission.weather.clouds_base, WEATHER_CLOUD_BASE_MIN)
if self.mission.weather.wind_at_ground == 0:
if self.mission.weather.wind_at_ground.speed == 0:
# frontline smokes look silly w/o any wind
self.mission.weather.wind_at_ground = random.randint(1, 2)
self._generate_wind(1)
def generate(self) -> EnvironmentSettings:
self._gen_random_time()