hedgewars/GSHandlers.inc
changeset 4135 5be798ecafdc
parent 4104 b94ff350d111
child 4153 6bd94e4c5d65
--- a/hedgewars/GSHandlers.inc	Fri Nov 05 15:37:36 2010 -0400
+++ b/hedgewars/GSHandlers.inc	Fri Nov 05 17:27:14 2010 -0400
@@ -618,6 +618,10 @@
     dec(Gear^.Timer);
     if Gear^.Timer = 0 then
     begin
+        PHedgehog(Gear^.Hedgehog)^.Gear^.Message:= PHedgehog(Gear^.Hedgehog)^.Gear^.Message and not gmAttack;
+        PHedgehog(Gear^.Hedgehog)^.Gear^.State:= PHedgehog(Gear^.Hedgehog)^.Gear^.State and not gstAttacking;
+        AttackBar:= 0;
+        
         Gear^.SoundChannel := LoopSound(sndBee);
         Gear^.Timer := 5000;
         // save initial speed in otherwise unused Friction variable