From c0d4b6de3e8ef1c3b0268cf81cc4960c38c37769 Mon Sep 17 00:00:00 2001 From: Tiehuis Date: Wed, 25 Feb 2015 15:14:15 +1300 Subject: [PATCH] Small change to animating rows --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 6cb13a7..1045f8a 100644 --- a/src/main.c +++ b/src/main.c @@ -7,7 +7,8 @@ void draw_then_sleep(struct gfx_state *s, struct gamestate *g) { gfx_draw(s, g); - gfx_sleep(40); + /* Have a fixed time for each turn to animate (160 default) */ + gfx_sleep(160 / g->opts->grid_width); } int main(int argc, char **argv)