mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 20:43:42 +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) {
|
||||
/* 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);
|
||||
|
|
|
@ -130,9 +130,6 @@ int main(void) {
|
|||
#endif
|
||||
|
||||
do {
|
||||
/* clear screen */
|
||||
dclear(C_WHITE);
|
||||
|
||||
/* render the map */
|
||||
game_draw(&game);
|
||||
|
||||
|
|
Loading…
Reference in a new issue