fix weather init

This commit is contained in:
Nikolay Korolev 2020-04-10 02:17:32 +03:00 committed by GitHub
parent 34349c4df2
commit 6473778c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ const int16 WeatherTypesList[] = {
const float Windiness[] = { const float Windiness[] = {
0.0f, // WEATHER_SUNNY 0.0f, // WEATHER_SUNNY
0.7f, // WEATHER_RAINY 0.7f, // WEATHER_CLOUDY
1.0f, // WEATHER_CLOUDY 1.0f, // WEATHER_RAINY
0.5f // WEATHER_FOGGY 0.5f // WEATHER_FOGGY
}; };
@ -106,7 +106,7 @@ void CWeather::Init(void)
{ {
NewWeatherType = WEATHER_SUNNY; NewWeatherType = WEATHER_SUNNY;
bScriptsForceRain = false; bScriptsForceRain = false;
OldWeatherType = WEATHER_RAINY; OldWeatherType = WEATHER_CLOUDY;
Stored_StateStored = false; Stored_StateStored = false;
InterpolationValue = 0.0f; InterpolationValue = 0.0f;
WhenToPlayLightningSound = 0; WhenToPlayLightningSound = 0;