mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Net's redraw function now uses the `dir' argument to determine whether it's
redrawing an undo. Seems to work. [originally from svn r4470]
This commit is contained in:
8
net.c
8
net.c
@ -1323,11 +1323,9 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
|
|||||||
break_label:
|
break_label:
|
||||||
|
|
||||||
if (tx >= 0) {
|
if (tx >= 0) {
|
||||||
if (tile(state, tx, ty) == ROT(tile(oldstate, tx, ty),
|
int last_rotate_dir = dir==-1 ? oldstate->last_rotate_dir :
|
||||||
state->last_rotate_dir))
|
state->last_rotate_dir;
|
||||||
angle = state->last_rotate_dir * 90.0F * (t / ROTATE_TIME);
|
angle = last_rotate_dir * dir * 90.0F * (t / ROTATE_TIME);
|
||||||
else
|
|
||||||
angle = state->last_rotate_dir * -90.0F * (t / ROTATE_TIME);
|
|
||||||
state = oldstate;
|
state = oldstate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user