From f5df59bb0cba7f31d9b20dbf556ff2e6b303a070 Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:04:40 +1000 Subject: [PATCH] Update columns.c --- src/columns.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/columns.c b/src/columns.c index 2b98e63..305c23c 100644 --- a/src/columns.c +++ b/src/columns.c @@ -316,17 +316,17 @@ int Ren_game(void) { SDL_RenderFillRect(sr, &main_back); // background SDL_SetRenderDrawColor (sr, 0xff, 0xff, 0xff, 255); SDL_RenderDrawRect(sr, &main_trim); // trim -// if(tile_c > 17) { -// tile_c = 0; -// } + display_grid(); + if(tile_c > 17) { + tile_c = 0; + } -// for (i = 0; i < 1; i++) { -// tile_dst.x = tile_pos; -// tile_dst.y = 11 * tile_c + 1; -// SDL_RenderCopy(sr, texture, &tile_src, &tile_dst); -// tile_c++; -// } -display_grid(); + for (i = 0; i < 1; i++) { + tile_dst.x = tile_pos; + tile_dst.y = 11 * tile_c + 1; + SDL_RenderCopy(sr, texture, &tile_src, &tile_dst); + tile_c++; + } return 0; }