PF_sound: Remove the volume, attenuation, and channel boundary checks:

they are already checked the same way in SV_StartSound()
This commit is contained in:
Ozkan Sezer 2022-04-21 23:55:10 +03:00
parent ee3e65cc78
commit 7bd751327d

View file

@ -661,15 +661,6 @@ static void PF_sound (void)
volume = G_FLOAT(OFS_PARM3) * 255;
attenuation = G_FLOAT(OFS_PARM4);
if (volume < 0 || volume > 255)
Host_Error ("SV_StartSound: volume = %i", volume);
if (attenuation < 0 || attenuation > 4)
Host_Error ("SV_StartSound: attenuation = %f", attenuation);
if (channel < 0 || channel > 7)
Host_Error ("SV_StartSound: channel = %i", channel);
SV_StartSound (entity, channel, sample, volume, attenuation);
}