Construction Mode: Fix free girder/rubber placement near hog
authorWuzzy <almikes@aol.com>
Sun, 27 Nov 2016 06:32:00 +0100
changeset 12098 0d6e0ed36c9e
parent 12097 9fe7eb1f7df2
child 12099 4dfc95eabee1
Construction Mode: Fix free girder/rubber placement near hog
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Sun Nov 27 06:24:43 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Sun Nov 27 06:32:00 2016 +0100
@@ -1559,6 +1559,8 @@
 	MinesNum = 0
 
 	EnableGameFlags(gfInfAttack)
+	-- This is a hack to make sure all girder/rubber placement is handled by Construction Mode to overwrite the default behaviour
+	SetMaxBuildDistance(1)
 
 	fortMode = MapGen == mgForts