mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-29 13:03:43 +01:00
rendu : Suppresion de dclear()s non nécéssaires
This commit is contained in:
parent
9fc15af523
commit
0f887ea419
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue