Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit b8e1576

Browse files
committed
Fixing issue where if player holds down the jump button while the
developer turns off the gui controls, the player will never stop jumping.
1 parent b049e82 commit b8e1576

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CoreScriptsRoot/CoreScripts/TouchControls.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ if hasNewTouchControls then -- NEW TOUCH CONTROLS WITH THUMBPAD
514514
ThumbstickFrame.Visible = false
515515
ThumbpadFrame.Visible = false
516516
DPadFrame.Visible = false
517+
if JumpTouchObject then
518+
JumpTouchObject = nil
519+
end
517520
else
518521
local isThumbstickMode = false
519522
local isThumbpadMode = false
@@ -1634,6 +1637,9 @@ else -- OLD TOUCH CONTROLS WITH THUMBPAD
16341637
jumpButton.Visible = false
16351638
characterDPad.Visible = false
16361639
thumbpadFrame.Visible = false
1640+
if currentJumpTouch then
1641+
currentJumpTouch = nil
1642+
end
16371643
else
16381644
local modeName = GameSettings.TouchMovementMode.Name
16391645
local isThumbpadMode = false

0 commit comments

Comments
 (0)