aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/SoundEmitterSystem.cpp
diff options
context:
space:
mode:
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)