# HG changeset patch # User unc0rr # Date 1184413614 0 # Node ID b2b840eeb10a63e371d286e3866d6fe0d5327f61 # Parent a7d49d5e82570b485a9de0c603ae2f1b249ec9ee Fix bug when hedgehog moves not right after it is kicked diff -r a7d49d5e8257 -r b2b840eeb10a hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Fri Jul 13 20:00:42 2007 +0000 +++ b/hedgewars/HHHandlers.inc Sat Jul 14 11:46:54 2007 +0000 @@ -327,11 +327,10 @@ procedure doStepHedgehogDriven(Gear: PGear); var t: PGear; begin -if isInMultiShoot and (Gear^.Damage = 0) then - begin - exit - end; -AllInactive:= false; +if not isInMultiShoot then + AllInactive:= false +else + Gear^.Message:= 0; if (TurnTimeLeft = 0) or (Gear^.Damage > 0) then begin @@ -387,9 +386,12 @@ exit end; - HedgehogChAngle(Gear); - if StepTicks > 0 then dec(StepTicks); - if (StepTicks = 0) then HedgehogStep(Gear) + if not isInMultiShoot then + begin + HedgehogChAngle(Gear); + if StepTicks > 0 then dec(StepTicks); + if (StepTicks = 0) then HedgehogStep(Gear) + end end; ////////////////////////////////////////////////////////////////////////////////