shithub: puzzles

Download patch

ref: 9dcba6a8cfe48da21df47f32e43aad10b8f52dae
parent: 0d62b4a688bb105fa951d0d7c309a055eeb35893
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Sun Mar 10 08:49:06 EDT 2013

Make Unruly's keyboard controls match the documentation and other puzzles in
the collection -- now Enter = black and Space = white.

[originally from svn r9770]

--- a/unruly.c
+++ b/unruly.c
@@ -1362,9 +1362,9 @@
             c = '-';
 
         /* Cycle through options */
-        else if (button == CURSOR_SELECT || button == RIGHT_BUTTON)
+        else if (button == CURSOR_SELECT2 || button == RIGHT_BUTTON)
             c = (i == EMPTY ? '0' : i == N_ZERO ? '1' : '-');
-        else if (button == CURSOR_SELECT2 || button == LEFT_BUTTON)
+        else if (button == CURSOR_SELECT || button == LEFT_BUTTON)
             c = (i == EMPTY ? '1' : i == N_ONE ? '0' : '-');
 
         if (state->grid[hy * w2 + hx] ==