mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
After discussion with Simon, the game redraw functions are now passed a new
argument `dir' which tells them whether this redraw is due to an undo, rather than have them second-guess it from game state. Note that none of the actual games yet take advantage of this; so it hasn't been tested in anger (although it has been inspected by debugging). [originally from svn r4469]
This commit is contained in:
6
cube.c
6
cube.c
@ -1351,7 +1351,7 @@ void game_free_drawstate(game_drawstate *ds)
|
||||
}
|
||||
|
||||
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
|
||||
game_state *state, game_ui *ui,
|
||||
game_state *state, int dir, game_ui *ui,
|
||||
float animtime, float flashtime)
|
||||
{
|
||||
int i, j;
|
||||
@ -1510,12 +1510,12 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
|
||||
}
|
||||
}
|
||||
|
||||
float game_anim_length(game_state *oldstate, game_state *newstate)
|
||||
float game_anim_length(game_state *oldstate, game_state *newstate, int dir)
|
||||
{
|
||||
return ROLLTIME;
|
||||
}
|
||||
|
||||
float game_flash_length(game_state *oldstate, game_state *newstate)
|
||||
float game_flash_length(game_state *oldstate, game_state *newstate, int dir)
|
||||
{
|
||||
return 0.0F;
|
||||
}
|
||||
|
Reference in New Issue
Block a user