HedgeEditor: Disable delete mode for sprite placement mode
authorWuzzy <almikes@aol.com>
Sat, 09 Apr 2016 09:14:09 +0200
changeset 12003 9790a4c72d7b
parent 12002 a2f0c0d0e534
child 12004 a3e2f9408799
HedgeEditor: Disable delete mode for sprite placement mode
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 08:59:29 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Sat Apr 09 09:14:09 2016 +0200
@@ -2996,7 +2996,7 @@
 		elseif (s == 4) then
 			landType = lfBouncy
 			AddCaption(loc("Bouncy Land"),0xffba00ff,capgrpAmmoinfo)
-		elseif (s == 5) and (cat[cIndex] ~= loc("Sprite Modification Mode")) then
+		elseif (s == 5) and (cat[cIndex] ~= loc("Sprite Modification Mode")) and (cat[cIndex] ~= loc("Sprite Placement Mode")) then
 			superDelete = true
 		end
 	elseif pMode[pIndex] == loc("Selection Mode") then