# HG changeset patch # User Wuzzy # Date 1460497849 -7200 # Node ID 511d0f2aa9bf70c346e8dcdab004d1fb820aad9c # Parent 8575b8b76373fc81eafa4606c2086e995b07df27 Construction Mode: Disable up/down in building mode diff -r 8575b8b76373 -r 511d0f2aa9bf share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Tue Apr 12 23:48:34 2016 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Tue Apr 12 23:50:49 2016 +0200 @@ -1719,7 +1719,7 @@ --------------------------------------------------------- function onUp() - if ((curWep == amAirAttack) or (curWep == amNapalm) or (curWep == amDrillStrike) ) then + if ( (curWep == amNapalm) or (curWep == amDrillStrike) ) then updatePlacementDisplay(-1) end @@ -1727,7 +1727,7 @@ function onDown() - if ((curWep == amAirAttack) or (curWep == amNapalm) or (curWep == amDrillStrike) ) then + if ( (curWep == amNapalm) or (curWep == amDrillStrike) ) then updatePlacementDisplay(1) end