diff --git a/src/game.c b/src/game.c index bd918ae..744223d 100644 --- a/src/game.c +++ b/src/game.c @@ -98,9 +98,12 @@ void game_render_indicator(Game *game) { } } +/* Draw everything. */ void game_draw(Game *game) { - /* Draw everything. */ - dclear(C_WHITE); + /*Only clear if we are inside, the screen is guaranteed to be filled + * otherwise */ + if(game->map_level->indoor) + dclear(C_WHITE); map_render_by_layer(game, BACKGROUND); npc_draw(game); player_draw(game); diff --git a/src/main.c b/src/main.c index 6029129..b5e5dc4 100644 --- a/src/main.c +++ b/src/main.c @@ -130,9 +130,6 @@ int main(void) { #endif do { - /* clear screen */ - dclear(C_WHITE); - /* render the map */ game_draw(&game);