[quadrapassel/lr/difficult-mode-fixes: 2/3] game: don't make the moves timed on simulating them
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel/lr/difficult-mode-fixes: 2/3] game: don't make the moves timed on simulating them
- Date: Tue, 18 Dec 2018 22:11:53 +0000 (UTC)
commit e00db7e9aa774831742fee69f164d940b953e477
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]