Added INI option to stop thunderstorms and still alow rain

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@570 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
AcyForsythe
2006-09-27 22:59:34 +00:00
parent 137e12d6b4
commit c816092c05
+9 -3
View File
@@ -421,11 +421,17 @@ void ForecastDayEvents( )
ubStormIntensity = 0;
// Randomze for a storm!
if ( Random( 10 ) < 5 )
//Kaiden: making thunderstorms optional
if (gGameExternalOptions.gfAllowLightning)
{
ubStormIntensity = 1;
// Randomze for a storm!
if ( Random( 10 ) < 5 )
{
ubStormIntensity = 1;
}
}
if( gGameExternalOptions.gfAllowRain ) AddSameDayRangedStrategicEvent( EVENT_RAINSTORM, uiStartTime, uiEndTime - uiStartTime, ubStormIntensity );