mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-22 12:38:12 +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();
|
float y = touchpad.getKnobPercentY();
|
||||||
if (x == 0 && y == 0) {
|
if (x == 0 && y == 0) {
|
||||||
player.setPath(map, null);
|
player.setPath(map, null);
|
||||||
|
} else if (getDialog() != null) {
|
||||||
|
setDialog(null);
|
||||||
|
} else if (getMenu() != null) {
|
||||||
|
setMenu(null, null);
|
||||||
} else {
|
} else {
|
||||||
//float rad = MathUtils.atan2(y, x);
|
//float rad = MathUtils.atan2(y, x);
|
||||||
//x = Direction.getOffX(rad);
|
//x = Direction.getOffX(rad);
|
||||||
|
Loading…
Reference in New Issue
Block a user