Added new options:

- ENABLE_TA enables fire ambient sound
- VOLUME_TA controls fire ambient sound volume

Fire ambient sound is played in a loop when there is active fire effect on screen.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8738 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2020-01-24 10:06:06 +00:00
parent 352a344308
commit 0048e75c80
7 changed files with 162 additions and 3 deletions
+14 -1
View File
@@ -30,7 +30,8 @@
#include "Tactical Placement GUI.h"//dnl ch45 071009
#include "Map Screen Interface Map Inventory.h"//dnl ch51 081009
#include "World Items.h"//dnl ch77 191113
#include "Overhead.h" // added by Flugente
#include "Overhead.h" // added by Flugente
#include "Ambient Control.h" // sevenfm
#endif
#include "SaveLoadScreen.h"
@@ -409,6 +410,12 @@ void GameLoop(void)
// rain
RenderRain();
// sevenfm: update tactical ambients
if (guiCurrentScreen == GAME_SCREEN)
{
UpdateFireAmbient();
}
// Flugente: dynamic opinions: Dialogue Boxes need to be refreshed
RefreshBoxes( );
@@ -533,6 +540,12 @@ void HandleNewScreenChange( UINT32 uiNewScreen, UINT32 uiOldScreen )
}
}
// end rain
if (uiNewScreen != MSG_BOX_SCREEN)
{
// stop ambients
StopFireAmbient();
}
}
void HandleShortCutExitState( void )