mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-02 21:32:17 +00:00
fix this crash bruh
This commit is contained in:
parent
54ca32e8b9
commit
dbf3d6aedb
1 changed files with 6 additions and 2 deletions
|
|
@ -372,7 +372,9 @@ class CameraController extends Object {
|
|||
} else {
|
||||
@:privateAccess level.playGui.setSpectateMenuText(1);
|
||||
if (Key.isPressed(Settings.controlsSettings.left)
|
||||
|| (MarbleGame.instance.touchInput.leftButton.pressed && MarbleGame.instance.touchInput.leftButton.didPressIt)) {
|
||||
|| (Util.isTouchDevice()
|
||||
&& MarbleGame.instance.touchInput.leftButton.pressed
|
||||
&& MarbleGame.instance.touchInput.leftButton.didPressIt)) {
|
||||
MarbleGame.instance.touchInput.leftButton.didPressIt = false;
|
||||
spectateMarbleIndex = (spectateMarbleIndex - 1 + level.marbles.length) % level.marbles.length;
|
||||
@:privateAccess while (level.marbles[spectateMarbleIndex].connection == null
|
||||
|
|
@ -382,7 +384,9 @@ class CameraController extends Object {
|
|||
}
|
||||
|
||||
if (Key.isPressed(Settings.controlsSettings.right)
|
||||
|| (MarbleGame.instance.touchInput.rightButton.pressed && MarbleGame.instance.touchInput.rightButton.didPressIt)) {
|
||||
|| (Util.isTouchDevice()
|
||||
&& MarbleGame.instance.touchInput.rightButton.pressed
|
||||
&& MarbleGame.instance.touchInput.rightButton.didPressIt)) {
|
||||
MarbleGame.instance.touchInput.rightButton.didPressIt = false;
|
||||
spectateMarbleIndex = (spectateMarbleIndex + 1 + level.marbles.length) % level.marbles.length;
|
||||
@:privateAccess while (level.marbles[spectateMarbleIndex].connection == null
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue