[quadrapassel] game: Fix inverted rotations



commit ffde771014036813a6794c1230b66c3d209a6d4d
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Dec 2 13:35:35 2017 +0100

    game: Fix inverted rotations
    
    The left/counter-clockwise rotation was actually clockwise and
    vice-versa.
    
    This makes them rotate the expected way.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791126

 src/game.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 4a6cb62..3e5d1f4 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -373,12 +373,12 @@ public class Game : Object
 
     public bool rotate_left ()
     {
-        return move_shape (0, 0, -1);
+        return move_shape (0, 0, 1);
     }
 
     public bool rotate_right ()
     {
-        return move_shape (0, 0, 1);
+        return move_shape (0, 0, -1);
     }
 
     public void set_fast_forward (bool enable)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]