mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Now we have the `dir' parameter, we should use it where it makes
sense to do so. [originally from svn r4477]
This commit is contained in:
@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user