share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 11996 936ac92cb67a
parent 11995 ec3fe3068932
child 11997 6a67e76d0f1d
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 07:16:01 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 07:40:15 2016 +0200
@@ -3176,6 +3176,9 @@
 	sCirc = AddVisualGear(0,0,vgtCircle,0,true)
 	SetVisualGearValues(sCirc, 0, 0, 100, 255, 1, 10, 0, 40, 3, 0xffba00ff)
 
+	--[[ This is a small hack to disable Hedgewars' girder placement since we do it on our own;
+	this will remove the "girder circle" and gets rid of the placement failure animation ]]
+	SetMaxBuildDistance(1)
 
 	frameID = 1
 	visualSprite = sprAmGirder