Skip to content

Commit

Permalink
Potential crashfix
Browse files Browse the repository at this point in the history
  • Loading branch information
napalm00 committed Dec 1, 2018
1 parent a6c52db commit a120b7b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions PlaceAnywhere.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function PlaceAnywhere:loadMap(name)
PlacementUtil.isInsidePlacementPlaces = Utils.overwrittenFunction(PlacementUtil.isInsidePlacementPlaces, PlaceAnywhere.isInsidePlacementPlaces);
PlacementUtil.isInsideRestrictedZone = Utils.overwrittenFunction(PlacementUtil.isInsideRestrictedZone, PlaceAnywhere.isInsideRestrictedZone);
PlacementUtil.hasOverlapWithPoint = Utils.overwrittenFunction(PlacementUtil.hasOverlapWithPoint, PlaceAnywhere.hasOverlapWithPoint);
TerrainDeformation.setOutsideAreaConstraints = Utils.overwrittenFunction(TerrainDeformation.setOutsideAreaConstraints, PlaceAnywhere.setOutsideAreaConstraints);
--TerrainDeformation.setOutsideAreaConstraints = Utils.overwrittenFunction(TerrainDeformation.setOutsideAreaConstraints, PlaceAnywhere.setOutsideAreaConstraints); causes crash and is useless?
TerrainDeformation.setDynamicObjectCollisionMask = Utils.overwrittenFunction(TerrainDeformation.setDynamicObjectCollisionMask, PlaceAnywhere.setDynamicObjectCollisionMask);

PlacementScreenController.onTerrainValidationFinished = Utils.overwrittenFunction(PlacementScreenController.onTerrainValidationFinished, PlaceAnywhere.onTerrainValidationFinished);
Expand All @@ -36,10 +36,6 @@ function PlaceAnywhere:setBlockedAreaMap(superFunc, ...)
return true;
end

function PlaceAnywhere:createRestrictedZone(superFunc, ...)
return superFunc(self, ...);
end

function PlaceAnywhere:hasObjectOverlap(superFunc, ...)
return false;
end
Expand Down

0 comments on commit a120b7b

Please sign in to comment.