share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 14339 efd2e8e217c9
parent 14301 8fc6ac47f00a
child 14348 ffebbcc40c9b
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Thu Nov 29 01:43:41 2018 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Thu Nov 29 03:26:35 2018 +0100
@@ -1189,10 +1189,12 @@
 		if (curWep == amGirder) then
 			cIndex = 1
 			RedefineSubset()
+			updateCost()
 			updated = true
 		elseif (curWep == amRubber) then
 			cIndex = 2
 			RedefineSubset()
+			updateCost()
 			updated = true
 		elseif (curWep == amCMStructurePlacer) then
 			cIndex = 9
@@ -1537,7 +1539,6 @@
 
 	if foundMatch == true then
 		RedefineSubset()
-		--updateCost()
 		HandleConstructionModeTools()
 	end
 end