chiark / gitweb /
Fix a typo in a Bridges error message.
[sgt-puzzles.git] / bridges.c
index 23a95f58cc7a7c7f457ef3926e10f9dff230aba0..7a448e25baa5afefc80419ceb59d3ae5928561d2 100644 (file)
--- a/bridges.c
+++ b/bridges.c
@@ -2029,7 +2029,7 @@ static char *validate_desc(const game_params *params, const char *desc)
         else if (!*desc)
             return "Game description shorter than expected";
         else
-            return "Game description containers unexpected character";
+            return "Game description contains unexpected character";
         desc++;
     }
     if (*desc || i > wh)
@@ -2376,6 +2376,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
             int nx = ui->cur_x, ny = ui->cur_y;
 
             move_cursor(button, &nx, &ny, state->w, state->h, 0);
+            if (nx == ui->cur_x && ny == ui->cur_y)
+                return NULL;
             update_drag_dst(state, ui, ds,
                              COORD(nx)+TILE_SIZE/2,
                              COORD(ny)+TILE_SIZE/2);