fix passing garbage to mumble outside of levels
this just deadass passed the unitialized listener array into mumble
This commit is contained in:
parent
40aa30ede2
commit
ae82fdceca
1 changed files with 2 additions and 1 deletions
|
|
@ -783,6 +783,8 @@ void S_UpdateSounds(void)
|
|||
if (actualdigmusicvolume != cv_digmusicvolume.value * USER_VOLUME_SCALE)
|
||||
S_SetDigMusicVolume (cv_digmusicvolume.value);
|
||||
|
||||
memset(listener, 0, sizeof(listener));
|
||||
|
||||
// We're done now, if we're not in a level.
|
||||
if (gamestate != GS_LEVEL)
|
||||
{
|
||||
|
|
@ -801,7 +803,6 @@ void S_UpdateSounds(void)
|
|||
{
|
||||
player_t *player = &players[displayplayers[i]];
|
||||
|
||||
memset(&listener[i], 0, sizeof (listener[i]));
|
||||
listenmobj[i] = NULL;
|
||||
|
||||
if (!player)
|
||||
|
|
|
|||
Loading…
Reference in a new issue