mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Fixed: $Ambient SNDINFO commands zeroed the AmbientSound structure, which
is a no-no when using FString. SVN r490 (trunk)
This commit is contained in:
parent
4de9e98fd1
commit
8682f37b24
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
February 19, 2007
|
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
|
- 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.
|
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.
|
- Fixed: Playing a demo in windowed mode no longer grabs the mouse.
|
||||||
|
|
|
@ -901,7 +901,12 @@ static void S_AddSNDINFO (int lump)
|
||||||
{
|
{
|
||||||
ambient = Ambients[sc_Number];
|
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 ();
|
SC_MustGetString ();
|
||||||
ambient->sound = sc_String;
|
ambient->sound = sc_String;
|
||||||
|
|
Loading…
Reference in a new issue