- limit particle size to 127

This commit is contained in:
Christoph Oelckers 2016-01-25 21:08:09 +01:00
parent 73ee500bea
commit cf43eb6c6d
1 changed files with 1 additions and 1 deletions

View File

@ -6012,7 +6012,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
startalpha = clamp<int>(startalpha, 0, 0xFF); // Clamp to byte
lifetime = clamp<int>(lifetime, 0, 0xFF); // Clamp to byte
fadestep = clamp<int>(fadestep, -1, 0xFF); // Clamp to byte inc. -1 (indicating automatic)
size = clamp<int>(size, 0, 0xFF); // Clamp to byte
size = clamp<int>(size, 0, 127); // Clamp to byte
if (lifetime != 0)
P_SpawnParticle(x, y, z, xvel, yvel, zvel, color, fullbright, startalpha, lifetime, size, fadestep, accelx, accely, accelz);