Rain noise can be toggled ON/OFF in the Options Screen

Added Brightness Level string to the German Version, when pressing "F" in tactical screen

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@363 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2006-07-21 21:09:50 +00:00
parent e146163d84
commit b6df04a08a
14 changed files with 132 additions and 21 deletions
+24 -11
View File
@@ -179,10 +179,13 @@ void EnvironmentController( BOOLEAN fCheckForLights )
guiEnvWeather &= (~WEATHER_FORECAST_THUNDERSHOWERS );
guiEnvWeather &= (~WEATHER_FORECAST_SHOWERS );
if ( guiRainLoop != NO_SAMPLE )
if (gGameSettings.fOptions[ TOPTION_RAIN_SOUND ] == TRUE)
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
if ( guiRainLoop != NO_SAMPLE )
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
}
}
return;
}
@@ -208,9 +211,13 @@ void EnvironmentController( BOOLEAN fCheckForLights )
//#if 0 //rain
if ( guiEnvWeather & ( WEATHER_FORECAST_THUNDERSHOWERS | WEATHER_FORECAST_SHOWERS ) )
{
if ( guiRainLoop == NO_SAMPLE )
if (gGameSettings.fOptions[ TOPTION_RAIN_SOUND ] == TRUE)
{
guiRainLoop = PlayJA2Ambient( RAIN_1, BTNVOLUME, 0 );
if ( guiRainLoop == NO_SAMPLE )
{
guiRainLoop = PlayJA2Ambient( RAIN_1, BTNVOLUME, 0 );
}
}
// Do lightning if we want...
@@ -222,10 +229,13 @@ void EnvironmentController( BOOLEAN fCheckForLights )
}
else
{
if ( guiRainLoop != NO_SAMPLE )
if (gGameSettings.fOptions[ TOPTION_RAIN_SOUND ] == TRUE)
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
if ( guiRainLoop != NO_SAMPLE )
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
}
}
}
//#endif //rain
@@ -362,10 +372,13 @@ void BuildDayAmbientSounds( )
//guiRainLoop = NO_SAMPLE;
//rain
if ( guiRainLoop != NO_SAMPLE )
if (gGameSettings.fOptions[ TOPTION_RAIN_SOUND ] == TRUE)
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
if ( guiRainLoop != NO_SAMPLE )
{
SoundStop( guiRainLoop );
guiRainLoop = NO_SAMPLE;
}
}
//end rain
}