diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-08-17 19:59:14 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-08-17 19:59:14 +0000 |
| commit | a7b1697b1cd450589141b88862142dafc72e0b74 (patch) | |
| tree | 48f566bfd758240275cb569f66b89a6037b8acc5 /cube.c | |
| parent | ae63b8010b2fbac2eb591da888eefa9566da2b5f (diff) | |
| download | puzzles-a7b1697b1cd450589141b88862142dafc72e0b74.zip puzzles-a7b1697b1cd450589141b88862142dafc72e0b74.tar.gz puzzles-a7b1697b1cd450589141b88862142dafc72e0b74.tar.bz2 puzzles-a7b1697b1cd450589141b88862142dafc72e0b74.tar.xz | |
Now we have the `dir' parameter, we should use it where it makes
sense to do so.
[originally from svn r4477]
Diffstat (limited to 'cube.c')
| -rw-r--r-- | cube.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1366,13 +1366,15 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, draw_rect(fe, 0, 0, (int)((bb.r-bb.l+2.0F) * GRID_SCALE), (int)((bb.d-bb.u+2.0F) * GRID_SCALE), COL_BACKGROUND); - if (oldstate && oldstate->movecount > state->movecount) { + if (dir < 0) { game_state *t; /* * This is an Undo. So reverse the order of the states, and * run the roll timer backwards. */ + assert(oldstate); + t = oldstate; oldstate = state; state = t; |