Phil Bordelon points out that the general convention is to orient
[sgt/puzzles] / loopy.c
diff --git a/loopy.c b/loopy.c
index 2b77798..225f921 100644 (file)
--- a/loopy.c
+++ b/loopy.c
@@ -391,11 +391,11 @@ static const struct {
     { "4x4 Easy",   {  4,  4, 0 } },
     { "4x4 Hard",   {  4,  4, 2 } },
     { "7x7 Easy",   {  7,  7, 0 } },
-    { "7x7 Hard",   {  7,  7, 0 } },
+    { "7x7 Hard",   {  7,  7, 2 } },
     { "10x10 Easy", { 10, 10, 0 } },
     { "10x10 Hard", { 10, 10, 2 } },
     { "15x15 Easy", { 15, 15, 0 } },
-    { "20x30 Easy", { 20, 30, 0 } }
+    { "30x20 Easy", { 30, 20, 0 } }
 };
 
 static int game_fetch_preset(int i, char **name, game_params **params)
@@ -2226,6 +2226,7 @@ static game_state *execute_move(game_state *state, char *move)
     /*
      * Check for completion.
      */
+    i = 0;                            /* placate optimiser */
     for (j = 0; j <= newstate->h; j++) {
        for (i = 0; i < newstate->w; i++)
            if (LV_RIGHTOF_DOT(newstate, i, j) == LINE_YES)