From 78e5ff430560b38a4e1b448b3e182556ea289ffe Mon Sep 17 00:00:00 2001 From: dwsJason Date: Sat, 24 Nov 2018 17:18:25 -0500 Subject: [PATCH] game.c: commit the hacky fix for the sprites glitching on a screen transition --- src/game.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game.c b/src/game.c index f0d6a8e..6f95686 100644 --- a/src/game.c +++ b/src/game.c @@ -538,20 +538,20 @@ frame(void) } break; - - case CHAIN_END: map_init(); /* initialize the map */ isave(); /* save data in case of a restart */ ent_clprev(); /* cleanup entities */ draw_map(); /* draw the map onto the buffer */ draw_drawStatus(); /* draw the status bar onto the buffer */ - game_rects = &draw_SCREENRECT; /* request full screen refresh */ + draw_STATUSRECT.next = NULL; game_state = PLAY3; + frame(); + frame(); + game_rects = &draw_SCREENRECT; /* request full screen refresh */ return; - case SCROLL_UP: switch (scroll_up()) { case SCROLL_RUNNING: