# HG changeset patch # User palewolf # Date 1269819649 0 # Node ID d212e612c08e0a8d70a30d0289d89a216d9e31fa # Parent 08c4d9670b54bb81c819cf4b7cc424f32fd6820f Return control as soon as Birdy begins to disappear diff -r 08c4d9670b54 -r d212e612c08e hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Sun Mar 28 23:37:28 2010 +0000 +++ b/hedgewars/GSHandlers.inc Sun Mar 28 23:40:49 2010 +0000 @@ -2891,7 +2891,9 @@ Gear^.State:= Gear^.State or gstAnimation or gstTmpFlag; Gear^.Timer:= 0; Gear^.doStep:= @doStepBirdyDisappear; + CurAmmoGear:= nil; isCursorVisible:= false; + AfterAttack; end end; @@ -2899,12 +2901,12 @@ procedure doStepBirdyDescend(Gear: PGear); var HHGear: PGear; begin -AllInactive:= false; if Gear^.Timer > 0 then dec(Gear^.Timer, 1) else if CurrentHedgehog = nil then begin DeleteGear(Gear); + AfterAttack; exit end; HHGear:= CurrentHedgehog^.Gear;