- Fixed: $Ambient SNDINFO commands zeroed the AmbientSound structure, which

is a no-no when using FString.


SVN r490 (trunk)
This commit is contained in:
Randy Heit 2007-02-20 00:25:26 +00:00
parent 4de9e98fd1
commit 8682f37b24
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,6 @@
February 19, 2007
- Fixed: $Ambient SNDINFO commands zeroed the AmbientSound structure, which
is a no-no when using FString.
- Fixed: DEM_WIPEON/OFF commands should be ignored during demo playback and
not pause the game, or the whole thing will be out of sync.
- Fixed: Playing a demo in windowed mode no longer grabs the mouse.

View file

@ -901,7 +901,12 @@ static void S_AddSNDINFO (int lump)
{
ambient = Ambients[sc_Number];
}
memset (ambient, 0, sizeof(AmbientSound));
ambient->type = 0;
ambient->periodmin = 0;
ambient->periodmax = 0;
ambient->volume = 0;
ambient->attenuation = 0;
ambient->sound = "";
SC_MustGetString ();
ambient->sound = sc_String;