chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3627111
)
Handle replacing an existing arrow
author
Kevin Lyles
<kevinlyles@gmail.com>
Sun, 10 May 2015 00:16:24 +0000
(19:16 -0500)
committer
Simon Tatham
<anakin@pobox.com>
Mon, 11 May 2015 10:05:36 +0000
(11:05 +0100)
galaxies.c
patch
|
blob
|
history
diff --git
a/galaxies.c
b/galaxies.c
index 330b6bb3d287a399e5f7512a260d178c849c2192..a50efe45ff899215d2827a4b7f1b5c60e302d148 100644
(file)
--- a/
galaxies.c
+++ b/
galaxies.c
@@
-373,7
+373,9
@@
static void add_assoc_with_opposite(game_state *state, space *tile, space *dot)
}
sfree(colors);
+ remove_assoc_with_opposite(state, tile);
add_assoc(state, tile, dot);
+ remove_assoc_with_opposite(state, opposite);
add_assoc(state, opposite, dot);
}
@@
-2589,7
+2591,7
@@
static char *interpret_move(const game_state *state, game_ui *ui,
if (INUI(state, px, py)) {
sp = &SPACE(state, px, py);
- if (!(sp->flags & F_DOT)
&& !(sp->flags & F_TILE_ASSOC)
)
+ if (!(sp->flags & F_DOT))
sprintf(buf + strlen(buf), "%sA%d,%d,%d,%d",
sep, px, py, ui->dotx, ui->doty);
}