# HG changeset patch # User Wuzzy # Date 1461170560 -7200 # Node ID 0b0578c254701b4f0e0c85c37266aa7a41762b86 # Parent 0d8c4e4ead8a4b2c5e76a2173a2b4673e60088e8 HedgeEditor: Disable timer keys 2-4 in rubber placement mode diff -r 0d8c4e4ead8a -r 0b0578c25470 share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Wed Nov 23 14:10:29 2016 +0100 +++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Wed Apr 20 18:42:40 2016 +0200 @@ -2983,7 +2983,7 @@ AddCaption(cat[cIndex],0xffba00ff,capgrpMessage) showSecondaryMessage() if superDelete == true then - AddCaption(loc("Warning: Deletition Mode Active"),0xffba00ff,capgrpAmmoinfo) + AddCaption(loc("Deletition Mode"),0xffba00ff,capgrpAmmoinfo) end end @@ -3203,9 +3203,13 @@ elseif (cat[cIndex] == loc("Sprite Placement Mode")) or (cat[cIndex] == loc("Girder Placement Mode")) or (cat[cIndex] == loc("Rubber Placement Mode")) or (cat[cIndex] == loc("Sprite Modification Mode")) then - if (cat[cIndex] == loc("Rubber Placement Mode")) and (s ~= 5) then - landType = lfBouncy - AddCaption(loc("Bouncy Land"),0xffba00ff,capgrpAmmoinfo) + if (cat[cIndex] == loc("Rubber Placement Mode")) then + if s == 1 then + landType = lfBouncy + AddCaption(loc("Bouncy Land"),0xffba00ff,capgrpAmmoinfo) + elseif s == 5 then + superDelete = true + end elseif s == 1 then landType = 0 AddCaption(loc("Normal Land"),0xffba00ff,capgrpAmmoinfo)