Skip to content

Commit

Permalink
Merge pull request #1337 from myk002/myk_quickfort_nickthetinker
Browse files Browse the repository at this point in the history
Fix blueprinted constructions over stairs
  • Loading branch information
myk002 authored Nov 12, 2024
2 parents 5de599e + 6530ba7 commit ff8f711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Template for new versions:
- `makeown`: halt any hostile jobs the unit may be engaged in, like kidnapping
- `fix/loyaltycascade`: allow the fix to work on non-dwarven citizens
- `control-panel`: fix setting numeric preferences from the commandline
- `gui/quickfort`: fix build mode evluation rules to allow placement of various furniture and constructions on tiles with stair shapes or without orthagonal floor.

## Misc Improvements
- `control-panel`: Add realistic-melting tweak to control-panel registry
Expand Down
4 changes: 2 additions & 2 deletions internal/quickfort/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ local function is_valid_tile_bridge(pos, db_entry, b)
(dir == T_direction.Right and pos.x == b.pos.x+b.width-1) then
return is_valid_tile_has_space(pos)
end
return is_valid_tile_has_space_or_is_ramp(pos)
return is_valid_tile_machine(pos)
end

-- although vanilla allows constructions to be built on top of constructed
Expand Down Expand Up @@ -213,7 +213,7 @@ local function is_tile_coverable(pos)
shape ~= df.tiletype_shape.STAIR_DOWN) then
return false
end
return is_tile_floor_adjacent(pos)
return true
end

--
Expand Down

0 comments on commit ff8f711

Please sign in to comment.