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,8 +98,11 @@ void game_render_indicator(Game *game) {
}
}
void game_draw(Game *game) {
/* Draw everything. */
void game_draw(Game *game) {
/*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);

View file

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