Only check for listenmobj for the splitscreen players

Steel's comment is what hinted me to compare the code again -- P1 was the only one who didn't care about their listenmobj existing first.
This commit is contained in:
Sally Coolatta 2021-04-26 04:09:23 -04:00
parent 8958ebd293
commit 0f14f0cec1

View file

@ -635,7 +635,7 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
for (i = r_splitscreen; i >= 0; i--) for (i = r_splitscreen; i >= 0; i--)
{ {
// Copy the sound for the splitscreen players! // Copy the sound for the splitscreen players!
if (!listenmobj[i]) if (listenmobj[i] == NULL && i != 0)
{ {
continue; continue;
} }