mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
Fix for movement on mobile not exiting dialogs/menus
This commit is contained in:
parent
f55ecf6b75
commit
6e341253c7
@ -384,6 +384,10 @@ public class GameScreen extends ScreenAdapter implements LoadingScreen.Loadable
|
||||
float y = touchpad.getKnobPercentY();
|
||||
if (x == 0 && y == 0) {
|
||||
player.setPath(map, null);
|
||||
} else if (getDialog() != null) {
|
||||
setDialog(null);
|
||||
} else if (getMenu() != null) {
|
||||
setMenu(null, null);
|
||||
} else {
|
||||
//float rad = MathUtils.atan2(y, x);
|
||||
//x = Direction.getOffX(rad);
|
||||
|
Loading…
Reference in New Issue
Block a user