summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ur.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ur.cpp b/src/ur.cpp
index 881cff1..9d42bd7 100644
--- a/src/ur.cpp
+++ b/src/ur.cpp
@@ -346,8 +346,11 @@ main()
}
}
grabbed_piece->sprite.setPosition(s.getPosition());
- grabbed_piece->position = bp.position;
- in_place = true;
+
+ if (bp.position == (grabbed_piece->position + turn_roll)) {
+ grabbed_piece->position = bp.position;
+ in_place = true;
+ }
break;
}
}
@@ -372,6 +375,7 @@ main()
}
}
}
+
if (!reroll) {
next_turn(roll_sprites);
} else {