hedgewars/uGearsHandlersMess.pas
changeset 11342 aa3f886c6298
parent 11305 a20f416c91ec
child 11389 c93f204a5a00
equal deleted inserted replaced
11341:e6e748d021d0 11342:aa3f886c6298
  2648 
  2648 
  2649     DeleteCI(HHGear);
  2649     DeleteCI(HHGear);
  2650 
  2650 
  2651     AfterAttack;
  2651     AfterAttack;
  2652 
  2652 
  2653     HHGear^.State := HHGear^.State and (not (gstAttacking or gstAttacked or gstMoving));
  2653     // make sure hog doesn't end up facing in wrong direction due to high jump
       
  2654     if (HHGear^.State and gstHHHJump) <> 0 then
       
  2655         HHGear^.dX.isNegative := (not HHGear^.dX.isNegative);
       
  2656 
       
  2657     HHGear^.State := HHGear^.State and (not (gstAttacking or gstAttacked or gstMoving or gstHHJumping or gstHHHJump));
  2654     HHGear^.Message := HHGear^.Message and (not gmAttack);
  2658     HHGear^.Message := HHGear^.Message and (not gmAttack);
  2655 
  2659 
  2656     Gear^.doStep := @doStepParachuteWork;
  2660     Gear^.doStep := @doStepParachuteWork;
  2657 
  2661 
  2658     Gear^.Message := HHGear^.Message;
  2662     Gear^.Message := HHGear^.Message;