fix placement bug
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user