# HG changeset patch # User alfadur # Date 1520812787 -3600 # Node ID 0e7eddfbce8ad2eb628c42a810f9c8e741ed7915 # Parent 89a6b862e69201720f3d7b4fbb4357ed2b31a497 Fix minigun bullets sometimes failing to hit when shooting same thing twice in row alfadur says: “the stale collision cache is searched in, so if you shoot at same thing twice in a row, chances are it woudln't get hit” diff -r 89a6b862e692 -r 0e7eddfbce8a hedgewars/uCollisions.pas --- a/hedgewars/uCollisions.pas Sun Mar 11 21:38:08 2018 +0100 +++ b/hedgewars/uCollisions.pas Mon Mar 12 00:59:47 2018 +0100 @@ -291,7 +291,7 @@ var i: LongInt; begin UpdateHitOrder:= true; -for i:= 0 to cMaxGearHitOrderInd do +for i:= 0 to ordera.Count - 1 do if ordera.ar[i] = Gear then begin if Order <= ordera.order[i] then UpdateHitOrder:= false;