aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/SoundEmitterSystem.cpp
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/shared/SoundEmitterSystem.cpp
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.tar.xz
source-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/game/shared/SoundEmitterSystem.cpp')
-rw-r--r--mp/src/game/shared/SoundEmitterSystem.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/mp/src/game/shared/SoundEmitterSystem.cpp b/mp/src/game/shared/SoundEmitterSystem.cpp
index 7b641c20..39aca858 100644
--- a/mp/src/game/shared/SoundEmitterSystem.cpp
+++ b/mp/src/game/shared/SoundEmitterSystem.cpp
@@ -337,6 +337,15 @@ public:
FinishLog();
#endif
}
+
+ void Flush()
+ {
+ Assert( soundemitterbase );
+#if !defined( CLIENT_DLL )
+ FinishLog();
+#endif
+ soundemitterbase->Flush();
+ }
void InternalPrecacheWaves( int soundIndex )
{
@@ -998,10 +1007,7 @@ void S_SoundEmitterSystemFlush( void )
// save the current soundscape
// kill the system
- g_SoundEmitterSystem.Shutdown();
-
- // restart the system
- g_SoundEmitterSystem.Init();
+ g_SoundEmitterSystem.Flush();
#if !defined( CLIENT_DLL )
// Redo precache all wave files... (this should work now that we have dynamic string tables)