From 9c4ee71eb6a53583a71dfc5e4aa2942bcd72a2a4 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 2 Jul 2011 20:20:07 -0300 Subject: [PATCH] Clear screen before game_init(). --- src/ttysolitaire.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ttysolitaire.c b/src/ttysolitaire.c index be40203..d6285ed 100644 --- a/src/ttysolitaire.c +++ b/src/ttysolitaire.c @@ -82,6 +82,8 @@ int main(int argc, char *argv[]) { draw_greeting(); refresh(); if (key == KEY_SPACEBAR) { + clear(); + refresh(); game_init(&game, passes_through_deck); break; }