From daac529a9eded98181fdf2b0d79e7138195614ec Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Mon, 16 Aug 2004 16:29:54 +0000 Subject: 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] --- net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.c') diff --git a/net.c b/net.c index 8512a6a..4e752ed 100644 --- a/net.c +++ b/net.c @@ -1251,7 +1251,7 @@ static void draw_tile(frontend *fe, game_state *state, int x, int y, int tile, } 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; @@ -1404,7 +1404,7 @@ 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) { int x, y; @@ -1421,7 +1421,7 @@ float game_anim_length(game_state *oldstate, game_state *newstate) return 0.0F; } -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 -- cgit v1.1