Skip to content
Snippets Groups Projects
Commit 755dab3c authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko
Browse files

#469 Fixed sound of selecting puzzle piece is playing when touch is outside of the puzzle map.

parent 35174f05
Branches
Tags
No related merge requests found
......@@ -268,8 +268,8 @@ public class PursuitGame extends AbstractTablexiaGame<int[][]> {
public void selected(float x, float y) {
if (dragAndRotateActorListener != null) {
if (dragAndRotateActorListener.getDraggedActor() == null) {
getSound(PursuitAssets.SOUND_LIFT).play();
dragAndRotateActorListener.setDraggedActor(grid.pieceAtPoint(x, y));
if (dragAndRotateActorListener.getDraggedActor()!=null) getSound(PursuitAssets.SOUND_LIFT).play();
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment