From 1f8203b15500e2ad3e511dfdeb541b56ffdf8de7 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 1 Jan 2025 21:52:54 +0100 Subject: [PATCH] logic error lmao oops --- src/p_tick.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/p_tick.c b/src/p_tick.c index 8b9412f07..0190cbac6 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -437,7 +437,7 @@ static void P_DeviceRumbleTick(void) if (player->kartstuff[k_brakedrift]) { - high += FRACUNIT / 256; + high = CLAMP((high + FRACUNIT / 256), 0, UINT16_MAX); } // hack alert! i just dont want this thing constantly resetting the rumble lol @@ -446,17 +446,6 @@ static void P_DeviceRumbleTick(void) continue; } - // pls dont overflow or smth lel - if (low > FRACUNIT-1) - { - low = FRACUNIT-1; - } - - if (high > FRACUNIT-1) - { - high = FRACUNIT-1; - } - G_PlayerDeviceRumble(i, low, high, 57); } }