diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-08-16 16:29:54 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-08-16 16:29:54 +0000 |
| commit | daac529a9eded98181fdf2b0d79e7138195614ec (patch) | |
| tree | 88f9422b8f36470c838e379340a2f9598e930229 /netslide.c | |
| parent | f1e8a586b53535bad3e201a8cc42b514a8cb6e16 (diff) | |
| download | puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.zip puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.gz puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.bz2 puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.xz | |
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]
Diffstat (limited to 'netslide.c')
| -rw-r--r-- | netslide.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1287,7 +1287,7 @@ static void draw_arrow(frontend *fe, int x, int y, int xdx, int xdy) } void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, - game_state *state, game_ui *ui, float t, float ft) + game_state *state, int dir, game_ui *ui, float t, float ft) { int x, y, tx, ty, frame; unsigned char *active; @@ -1481,12 +1481,12 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, sfree(active); } -float game_anim_length(game_state *oldstate, game_state *newstate) +float game_anim_length(game_state *oldstate, game_state *newstate, int dir) { return ANIM_TIME; } -float game_flash_length(game_state *oldstate, game_state *newstate) +float game_flash_length(game_state *oldstate, game_state *newstate, int dir) { /* * If the game has just been completed, we display a completion |