Fix speed: 5X getting stuck shown if you had ctrl pressed before opening chat (Thanks Cybertoon)

This commit is contained in:
UnknownShadow200 2020-12-26 21:51:52 +11:00
parent b8bf9db131
commit a2d7f4a71a

View File

@ -802,7 +802,8 @@ static void LocalPlayer_HandleInput(float* xMoving, float* zMoving) {
struct LocalPlayerInput* input; struct LocalPlayerInput* input;
if (Gui_GetInputGrab()) { if (Gui_GetInputGrab()) {
p->Physics.Jumping = false; hacks->Speeding = false; /* TODO: Don't always turn these off anytime a screen is opened, only do it on InputUp */
p->Physics.Jumping = false; hacks->Speeding = false; hacks->HalfSpeeding = false;
hacks->FlyingUp = false; hacks->FlyingDown = false; hacks->FlyingUp = false; hacks->FlyingDown = false;
} else { } else {
/* keyboard input, touch, joystick, etc */ /* keyboard input, touch, joystick, etc */