Skip to content

Commit 6b0c47b

Browse files
fix android waypoint button positions
1 parent c4cc519 commit 6b0c47b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/main/java/org/destinationsol/game/screens/MapScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ public class MapScreen extends SolUiBaseScreen {
6363
zoomOutControl.setDisplayName("Zoom Out");
6464
controls.add(zoomOutControl);
6565

66-
Rectangle addWaypointArea = mobile ? MainGameScreen.btn(0, row0 - MainGameScreen.CELL_SZ, false) : rightPaneLayout.buttonRect(4);
66+
Rectangle addWaypointArea = mobile ? MainGameScreen.btn(0, 0, false) : rightPaneLayout.buttonRect(4);
6767
addWaypointControl = new SolUiControl(addWaypointArea, true, gameOptions.getKeyShoot2());
6868
addWaypointControl.setDisplayName(NEW_WAYPOINT_TEXT);
6969
controls.add(addWaypointControl);
7070

71-
Rectangle removeWaypointArea = mobile ? MainGameScreen.btn(0, row0 - MainGameScreen.CELL_SZ * 2, false) : rightPaneLayout.buttonRect(5);
71+
Rectangle removeWaypointArea = mobile ? MainGameScreen.btn(0, MainGameScreen.CELL_SZ, false) : rightPaneLayout.buttonRect(5);
7272
removeWaypointControl = new SolUiControl(removeWaypointArea, true, gameOptions.getKeyShoot2());
7373
removeWaypointControl.setDisplayName(REMOVE_WAYPOINT_TEXT);
7474
controls.add(removeWaypointControl);

0 commit comments

Comments
 (0)