mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
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:
parent
ee3e65cc78
commit
7bd751327d
1 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue