hedgewars/uGearsHandlersMess.pas
changeset 12656 161c10db4f27
parent 12644 59b46e6f36ff
child 12672 c98179b00740
equal deleted inserted replaced
12655:913d25669131 12656:161c10db4f27
  2863     end; 
  2863     end; 
  2864 
  2864 
  2865     valid:= false;
  2865     valid:= false;
  2866 
  2866 
  2867     lx:= Gear^.Target.X - SpritesData[sprHHTelepMask].Width  div 2; // left
  2867     lx:= Gear^.Target.X - SpritesData[sprHHTelepMask].Width  div 2; // left
       
  2868     lx:= CalcWorldWrap(lx, SpritesData[sprHHTelepMask].Width); // Take world edge into account
  2868     ty:= Gear^.Target.Y - SpritesData[sprHHTelepMask].Height div 2; // top
  2869     ty:= Gear^.Target.Y - SpritesData[sprHHTelepMask].Height div 2; // top
  2869 
  2870 
  2870     // remember original target location
  2871     // remember original target location
  2871     oy:= Gear^.Target.Y;
  2872     oy:= Gear^.Target.Y;
  2872 
  2873