hedgewars/GSHandlers.inc
changeset 4026 afae5a3b8424
parent 4024 1ffb84b3823d
child 4034 634a8c8682de
child 4035 3ed9573bcf5e
equal deleted inserted replaced
4024:1ffb84b3823d 4026:afae5a3b8424
  3385         // end of list?
  3385         // end of list?
  3386         if iterator = nil then
  3386         if iterator = nil then
  3387             break;
  3387             break;
  3388 
  3388 
  3389         // don't port portals or other gear that wouldn't make sense
  3389         // don't port portals or other gear that wouldn't make sense
  3390         if (iterator^.Kind = gtPortal) or (iterator^.Kind = gtRope) or (iterator^.PortalCounter > 20) then
  3390         if (iterator^.Kind = gtPortal) or (iterator^.Kind = gtRope)
       
  3391         or (iterator^.Kind = gtRCPlane) or (iterator^.PortalCounter > 20) then
  3391             continue;
  3392             continue;
  3392 
  3393 
  3393         // don't port hogs on rope
  3394         // don't port hogs on rope
  3394         if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)
  3395         if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)
  3395            and (iterator = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.Kind =
  3396            and (iterator = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.Kind =