From 7bee0dea66d5b5a2112d2e69d4547128d56abf0c Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Fri, 5 Apr 2013 11:12:17 +0200 Subject: [PATCH] Sleep after refreshing the window, animations are too fast for modern terminals. --- rogue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogue.h b/rogue.h index 6ca801a..0281b1d 100644 --- a/rogue.h +++ b/rogue.h @@ -48,7 +48,7 @@ #define otherwise break;default #define until(expr) while(!(expr)) #define ce(a, b) ((a).x == (b).x && (a).y == (b).y) -#define draw(window) wrefresh(window) +#define draw(window) (wrefresh(window),usleep(50000)) #define hero player.t_pos #define pstats player.t_stats #define pack player.t_pack -- 2.30.2