From 716f5fc11c2b6bdb3727639defd7a0358d9ccf00 Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Sun, 30 Mar 2025 17:33:09 +0200 Subject: [PATCH] fix condition for grid size --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8a6fa08..ca5a944 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2116,7 +2116,7 @@ int main(int argc, char **argv) { }; Uint32 num_grid_cells = current_map.height * current_map.width; - if (selected_tile_kind != -1) + if (selected_tile == -1) num_grid_cells = (current_map.height + 1) * (current_map.width + 1); SDL_BindGPUGraphicsPipeline(render_pass, grid_graphics_pipeline);