~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Docs and comments fixes from James H.
[sgt/puzzles]
/
magnets.c
diff --git
a/magnets.c
b/magnets.c
index
c970eee
..
beeedf5
100644
(file)
--- a/
magnets.c
+++ b/
magnets.c
@@
-1809,8
+1809,10
@@
static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
movech = ' ';
else
movech = '.';
- } else
+ } else
{
assert(!"unknown action");
+ movech = 0; /* placate optimiser */
+ }
sprintf(buf, "%c%d,%d", movech, gx, gy);