From: Joe Wreschnig Date: Fri, 5 Apr 2013 09:12:17 +0000 (+0200) Subject: Sleep after refreshing the window, animations are too fast for modern terminals. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=7bee0dea66d5b5a2112d2e69d4547128d56abf0c;p=rogue-pphs.git Sleep after refreshing the window, animations are too fast for modern terminals. --- 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