skip kill for bounce
authornemo
Wed, 09 Oct 2013 20:25:16 -0400
changeset 9509 5b3f2ea156c9
parent 9507 821452415337
child 9511 1be565d7b4b7
skip kill for bounce
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Wed Oct 09 20:23:06 2013 -0400
+++ b/hedgewars/uGearsHedgehog.pas	Wed Oct 09 20:25:16 2013 -0400
@@ -1276,7 +1276,8 @@
 ////////////////////////////////////////////////////////////////////////////////
 procedure doStepHedgehog(Gear: PGear);
 begin
-if WorldWrap(Gear) and (Gear = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.Kind =gtRope) then
+if WorldWrap(Gear) and (WorldEdge <> weBounce) and 
+  (Gear = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.Kind =gtRope) then
    CurAmmoGear^.PortalCounter:= 1;
 
 CheckSum:= CheckSum xor Gear^.Hedgehog^.BotLevel;