mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
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:
@@ -421,11 +421,17 @@ void ForecastDayEvents( )
|
|||||||
|
|
||||||
ubStormIntensity = 0;
|
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 );
|
if( gGameExternalOptions.gfAllowRain ) AddSameDayRangedStrategicEvent( EVENT_RAINSTORM, uiStartTime, uiEndTime - uiStartTime, ubStormIntensity );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user