no need to scale the volume for splitscreen if we dont play a sound lol

This commit is contained in:
Alug committed 2025-04-04 18:13:41 +02:00
1 parent f2d2307fcc
commit 2550f1bee5
1 file changed
+3 -1
+3 -1
View File
@@ -430,7 +430,7 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
{
const mobj_t *origin = (const mobj_t *)origin_p;
const boolean reverse = (stereoreverse.value ^ encoremode);
const INT32 initial_volume = (origin ? S_ScaleVolumeWithSplitscreen(volume) : volume);
INT32 initial_volume;
sfxinfo_t *sfx;
INT32 sep, pitch, priority, cnum;
@@ -448,6 +448,8 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
if (sfx_id == sfx_None)
return;
initial_volume = (origin ? S_ScaleVolumeWithSplitscreen(volume) : volume);
for (i = 0; i <= splitscreen; i++)
{
player_t *player = &players[displayplayers[i]];