logic error lmao oops
This commit is contained in:
1 parent
2c55e28ea5
commit
1f8203b155
1 file changed
+1
-12
+1
-12
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user