From 7bd751327d1d46dabb91469cd915d5166fc936b3 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 21 Apr 2022 23:55:10 +0300 Subject: [PATCH] PF_sound: Remove the volume, attenuation, and channel boundary checks: they are already checked the same way in SV_StartSound() --- Quake/pr_cmds.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Quake/pr_cmds.c b/Quake/pr_cmds.c index 1d4b245c..a77b3cfa 100644 --- a/Quake/pr_cmds.c +++ b/Quake/pr_cmds.c @@ -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); }