Skip to content

Commit

Permalink
Fix issue with fullshare (FAForever#4606)
Browse files Browse the repository at this point in the history
Entities could be a prop or a unit
  • Loading branch information
Garanas authored Jan 20, 2023
1 parent f3afe69 commit 3017f7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/SimUtils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ function FinalizeRebuiltUnits(trackers, blockingEntities)
-- revert collision shapes of any blocking units or wreckage
for _, entity in blockingEntities do
if not entity:BeenDestroyed() then
entity:ApplyCachedCollisionExtents()
if entity.IsProp then
entity:ApplyCachedCollisionExtents()
else
entity:RevertCollisionShape()
end
end
end
end
Expand Down

0 comments on commit 3017f7c

Please sign in to comment.