equal
deleted
inserted
replaced
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 |