fix placement bug

This commit is contained in:
2026-06-26 18:01:06 -07:00
parent f14864182c
commit f2f8f1fe1e
+2 -2
View File
@@ -116,8 +116,8 @@ footprint_fits_map :: proc(world_map: ^Map, gx, gy, footprint_w, footprint_h: in
if gx + footprint_w > MAP_W do return false
if gy + footprint_h > MAP_H do return false
for column in gy ..< footprint_h {
for row in gx ..< footprint_w {
for column in 0 ..< footprint_h {
for row in 0 ..< footprint_w {
cell_column := gx + column
cell_row := gy + row
if !can_build_at(world_map, cell_column, cell_row) do return false