# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1461012266 -7200
# Node ID 34fdc3d70acafdfb956dd8c5059a8664c2149e1d
# Parent  c7c0be04ee36fdc53fa8ff64b7c297f167aed275
HedgeEditor: Play placement sound more often

diff -r c7c0be04ee36 -r 34fdc3d70aca share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Mon Apr 18 22:34:39 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Mon Apr 18 22:44:26 2016 +0200
@@ -1320,6 +1320,9 @@
 			placedFrame[placedCount] = sFrame
 			placedSprite[placedCount] = reducedSpriteIDArray[pIndex]
 			placementSucceeded = CallPlaceSprite(placedCount)
+			if placementSucceeded then
+				PlaySound(sndPlaced)
+			end
 		else
 			placedType[placedCount] = "bogus"
 			SelectClosestSprite()
@@ -1335,6 +1338,7 @@
 		else
 			PlaceWaypoint(x,y)
 			placedCount = placedCount - 1
+			PlaySound(sndPlaced)
 		end
 
 	end