rendu : Suppresion de dclear()s non nécéssaires

This commit is contained in:
attilavs2 2024-08-01 15:28:49 +02:00
parent 9fc15af523
commit 0f887ea419
2 changed files with 5 additions and 5 deletions

View file

@ -98,9 +98,12 @@ void game_render_indicator(Game *game) {
} }
} }
/* Draw everything. */
void game_draw(Game *game) { void game_draw(Game *game) {
/* Draw everything. */ /*Only clear if we are inside, the screen is guaranteed to be filled
dclear(C_WHITE); * otherwise */
if(game->map_level->indoor)
dclear(C_WHITE);
map_render_by_layer(game, BACKGROUND); map_render_by_layer(game, BACKGROUND);
npc_draw(game); npc_draw(game);
player_draw(game); player_draw(game);

View file

@ -130,9 +130,6 @@ int main(void) {
#endif #endif
do { do {
/* clear screen */
dclear(C_WHITE);
/* render the map */ /* render the map */
game_draw(&game); game_draw(&game);