HedgeEditor: Don't change placement mode when air attack is not selected
authorWuzzy <almikes@aol.com>
Wed, 20 Apr 2016 19:04:22 +0200
changeset 12033 cbd9c1d41e06
parent 12032 7339122bad35
child 12034 6ef8e01bd01c
HedgeEditor: Don't change placement mode when air attack is not selected
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Apr 20 18:54:31 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Apr 20 19:04:22 2016 +0200
@@ -3341,7 +3341,7 @@
 ---------------------------------------------------------
 function onUp()
 
-	if (curWep ~= amGirder) then
+	if (curWep == amAirAttack) then
 		cIndex = cIndex - 1
 		if (cIndex == 1) or (cIndex == 2) then --1	--we no longer hit girder by normal means
 			cIndex = #cat
@@ -3356,7 +3356,7 @@
 
 function onDown()
 
-	if (curWep ~= amGirder) then
+	if (curWep == amAirAttack) then
 		cIndex = cIndex + 1
 		if cIndex > #cat then
 			cIndex = 3	 -- 2 ----we no longer hit girder by normal means