[quadrapassel/lr/difficult-mode-fixes: 6/7] game: don't make the moves timed on simulating them
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel/lr/difficult-mode-fixes: 6/7] game: don't make the moves timed on simulating them
- Date: Sat, 5 Jan 2019 21:06:30 +0000 (UTC)
commit 4d836085749d45503a0b8207dd0b5e1b91a45cb7
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Dec 18 22:45:57 2018 +0100
game: don't make the moves timed on simulating them
The "difficult mode" looks ahead to what would happen when the pieces would
be moved around. Running the fast move logic would make the game appear
to freeze when picking a difficult piece.
Fixes: 5b8cf4a89542e0b6344b52f536f2ceefd9a1b9c4
src/game.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index def3b3d..a1c6987 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -556,10 +556,10 @@ public class Game : Object
/* Move tile to position from the left */
var valid_position = true;
- while (g.move_left ());
+ while (g.move_shape (-1, 0, 0));
for (var x = 0; x < pos; x++)
{
- if (!g.move_right ())
+ if (!g.move_shape (1, 0, 0))
{
valid_position = false;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]