# HG changeset patch # User Wuzzy # Date 1461171862 -7200 # Node ID cbd9c1d41e06fa6e543f88c371fd1225be9ab195 # Parent 7339122bad35ab129521059fd90382434c7d69b6 HedgeEditor: Don't change placement mode when air attack is not selected diff -r 7339122bad35 -r cbd9c1d41e06 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