~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Now we have the `dir' parameter, we should use it where it makes
[sgt/puzzles]
/
sixteen.c
diff --git
a/sixteen.c
b/sixteen.c
index
1e1f8b8
..
f6215bd
100644
(file)
--- a/
sixteen.c
+++ b/
sixteen.c
@@
-664,10
+664,12
@@
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
float c;
int sense;
- if (oldstate && state->movecount < oldstate->movecount)
+ if (dir < 0) {
+ assert(oldstate);
sense = -oldstate->last_movement_sense;
- else
+ } else {
sense = state->last_movement_sense;
+ }
t = state->tiles[i];