chiark / gitweb /
Apply "103_fix-unequal-digit-h.diff" from the Debian package:
[sgt-puzzles.git] / unequal.c
index 320dedf36954382d829bcee584fea649cac12b4c..20fc2d25c06e1ae8c3922b2b97b326569b4dacc2 100644 (file)
--- a/unequal.c
+++ b/unequal.c
@@ -1296,8 +1296,6 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
             return "";
         }
     }
-    if (button == 'H' || button == 'h')
-        return dupstr("H");
 
     if (ui->hx != -1 && ui->hy != -1) {
         debug(("button %d, cbutton %d", button, (int)((char)button)));
@@ -1323,6 +1321,10 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
 
         return dupstr(buf);
     }
+
+    if (button == 'H' || button == 'h')
+        return dupstr("H");
+
     return NULL;
 }