diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-08-16 16:51:18 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-08-16 16:51:18 +0000 |
| commit | 2b392a9d5a0e269e1a8ef2281882f55facdee60f (patch) | |
| tree | c33c212bbc1658b30ad95632ea31ef83f9b7a032 /net.c | |
| parent | daac529a9eded98181fdf2b0d79e7138195614ec (diff) | |
| download | puzzles-2b392a9d5a0e269e1a8ef2281882f55facdee60f.zip puzzles-2b392a9d5a0e269e1a8ef2281882f55facdee60f.tar.gz puzzles-2b392a9d5a0e269e1a8ef2281882f55facdee60f.tar.bz2 puzzles-2b392a9d5a0e269e1a8ef2281882f55facdee60f.tar.xz | |
Net's redraw function now uses the `dir' argument to determine whether it's
redrawing an undo. Seems to work.
[originally from svn r4470]
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1323,11 +1323,9 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, break_label: if (tx >= 0) { - if (tile(state, tx, ty) == ROT(tile(oldstate, tx, ty), - state->last_rotate_dir)) - angle = state->last_rotate_dir * 90.0F * (t / ROTATE_TIME); - else - angle = state->last_rotate_dir * -90.0F * (t / ROTATE_TIME); + int last_rotate_dir = dir==-1 ? oldstate->last_rotate_dir : + state->last_rotate_dir; + angle = last_rotate_dir * dir * 90.0F * (t / ROTATE_TIME); state = oldstate; } } |