From 0d8dceea4310fde5706b3ce1c70609d72a38efdf Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 9 Sep 2015 18:35:41 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/game/shared/SoundEmitterSystem.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'mp/src/game/shared/SoundEmitterSystem.cpp') 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) -- cgit v1.2.3