Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions luarules/gadgets/ai_ruins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ end

-- CreateUnit does not snap; Pos2BuildPos uses even vs odd grid from footprint parity.
local function createSnappedUnit(defID, x, y, z, facing, teamID)
if UnitDefs[defID].customParams.modoption_blocked then
return nil
end
x, y, z = Spring.Pos2BuildPos(defID, x, y, z, facing)
return Spring.CreateUnit(defID, x, y, z, facing, teamID)
end
Expand Down
Loading