Fixed helicopter sound playing in loop indefinitely when quick-loading during helidrop animation.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9252 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2022-01-12 03:33:27 +00:00
parent 18b21ce561
commit ec30fcde64
+7
View File
@@ -245,6 +245,7 @@ extern BOOLEAN ValidateSoldierInitLinks( UINT8 ubCode );
#endif
extern BOOLEAN fFirstTimeInGameScreen; // added by Flugente
extern UINT32 uiSoundSample;
//////////////////////////////////////////////////////
//
@@ -2751,6 +2752,12 @@ BOOLEAN DoQuickLoad()
PauseTime( FALSE );
}
// Remove sound
if (uiSoundSample != NO_SAMPLE)
{
SoundStop(uiSoundSample);
}
//Do a fade out before we load the game
gFadeOutDoneCallback = DoneFadeOutForSaveLoadScreen;