mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix UFO hum level clamping
This commit is contained in:
parent
3165deb43b
commit
0eba5c5a74
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ static void UFOUpdateSound(mobj_t *ufo) {
|
||||||
|
|
||||||
if (!UFOEmeraldChase(ufo) && !UFOHumPlaying(ufo))
|
if (!UFOEmeraldChase(ufo) && !UFOHumPlaying(ufo))
|
||||||
{
|
{
|
||||||
healthlevel = max(min(healthlevel, 1), maxhum);
|
healthlevel = min(max(healthlevel, 1), maxhum);
|
||||||
S_StartSound(ufo, hums[maxhum - healthlevel]);
|
S_StartSound(ufo, hums[maxhum - healthlevel]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue