share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 11715 511d0f2aa9bf
parent 11714 8575b8b76373
child 11716 c7cdd98bb1ec
equal deleted inserted replaced
11714:8575b8b76373 11715:511d0f2aa9bf
  1717 -- i.e 	mine, sticky mine, barrels
  1717 -- i.e 	mine, sticky mine, barrels
  1718 --		health/weapon/utility crate, placement of gears
  1718 --		health/weapon/utility crate, placement of gears
  1719 ---------------------------------------------------------
  1719 ---------------------------------------------------------
  1720 function onUp()
  1720 function onUp()
  1721 
  1721 
  1722 	if ((curWep == amAirAttack) or (curWep == amNapalm) or (curWep == amDrillStrike) ) then
  1722 	if ( (curWep == amNapalm) or (curWep == amDrillStrike) ) then
  1723 		updatePlacementDisplay(-1)
  1723 		updatePlacementDisplay(-1)
  1724 	end
  1724 	end
  1725 
  1725 
  1726 end
  1726 end
  1727 
  1727 
  1728 function onDown()
  1728 function onDown()
  1729 
  1729 
  1730 	if ((curWep == amAirAttack) or (curWep == amNapalm) or (curWep == amDrillStrike) ) then
  1730 	if ( (curWep == amNapalm) or (curWep == amDrillStrike) ) then
  1731 		updatePlacementDisplay(1)
  1731 		updatePlacementDisplay(1)
  1732 	end
  1732 	end
  1733 
  1733 
  1734 end
  1734 end
  1735 
  1735