HedgeEditor: Play placement sound more often
authorWuzzy <almikes@aol.com>
Mon, 18 Apr 2016 22:44:26 +0200
changeset 12022 34fdc3d70aca
parent 12021 c7c0be04ee36
child 12023 ba71454538d0
HedgeEditor: Play placement sound more often
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