mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
+14
-1
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user