chiark / gitweb /
Fix a typo in a Bridges error message.
[sgt-puzzles.git] / bridges.c
index f5478af100d6f4db1c731841a6ed1b9428011d26..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);
@@ -2967,7 +2969,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
                 if (is_drag_src && (is == is_drag_src ||
                                     (is_drag_dst && is == is_drag_dst)))
                     idata |= DI_COL_SELECTED;
-                else if (island_impossible(is, v & G_MARK))
+                else if (island_impossible(is, v & G_MARK) || (v & G_WARN))
                     idata |= DI_COL_WARNING;
                 else
                     idata |= DI_COL_NORMAL;