diff options
author | 2025-05-22 14:50:12 +0200 | |
---|---|---|
committer | 2025-05-22 14:50:12 +0200 | |
commit | 839b0ebe37c5e574e197e46eda19bbf3d3013a05 (patch) | |
tree | 0266c273e4bbc0378b356be95745a54723b472ea /src/main/game/game.c | |
parent | 0c7a2228b73f48ce58159af77fdf55cf9c682422 (diff) | |
download | tris-839b0ebe37c5e574e197e46eda19bbf3d3013a05.tar.gz tris-839b0ebe37c5e574e197e46eda19bbf3d3013a05.zip |
Add the color for draft
Diffstat (limited to 'src/main/game/game.c')
-rw-r--r-- | src/main/game/game.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/game/game.c b/src/main/game/game.c index 788b5b2..b7beb41 100644 --- a/src/main/game/game.c +++ b/src/main/game/game.c @@ -74,8 +74,13 @@ check_win(TrisGame *game) && game->cells[i0]->sign == game->cells[i1]->sign && game->cells[i1]->sign == game->cells[i2]->sign) { engine_set_rendering_background_c(game->engine, game->board->wining_color); + return; } } + + if (game->moves >= 9) { + engine_set_rendering_background_c(game->engine, game->board->draft_color); + } } static void |