fix condition for grid size
This commit is contained in:
parent
36d69e7fa0
commit
716f5fc11c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user