hedgewars/uGearsRender.pas
changeset 10082 2f7b7992258f
parent 10080 ac51bcb534ef
child 10108 c68cf030eded
equal deleted inserted replaced
10081:0af84e5cbd4d 10082:2f7b7992258f
   964                     ty := ty - HealthTagTex^.h - 2;
   964                     ty := ty - HealthTagTex^.h - 2;
   965                 tx := ox;
   965                 tx := ox;
   966                 tx := round(max(((-cScreenWidth + 16) / zoom) + SpritesData[sprFinger].Width div 2, min(((cScreenWidth - 16) / zoom) - SpritesData[sprFinger].Width div 2, tx)));
   966                 tx := round(max(((-cScreenWidth + 16) / zoom) + SpritesData[sprFinger].Width div 2, min(((cScreenWidth - 16) / zoom) - SpritesData[sprFinger].Width div 2, tx)));
   967                 ty := round(max(cScreenHeight div 2 - ((cScreenHeight - 16) / (zoom)) + SpritesData[sprFinger].Height div 2, min(cScreenHeight div 2 - ((-cScreenHeight + SpritesData[sprFinger].Height) / (zoom)) - SpritesData[sprFinger].Width div 2 - 96, ty)));
   967                 ty := round(max(cScreenHeight div 2 - ((cScreenHeight - 16) / (zoom)) + SpritesData[sprFinger].Height div 2, min(cScreenHeight div 2 - ((-cScreenHeight + SpritesData[sprFinger].Height) / (zoom)) - SpritesData[sprFinger].Width div 2 - 96, ty)));
   968 
   968 
   969                 dAngle := DxDy2Angle(ty - oy, tx - ox) + 90;
   969                 dAngle := DxDy2Angle(int2hwfloat(ty - oy), int2hwfloat(tx - ox)) + 90;
   970 
   970 
   971                 DrawSpriteRotatedF(sprFinger, tx, ty, GameTicks div 32 mod 16, 1, dAngle);
   971                 DrawSpriteRotatedF(sprFinger, tx, ty, GameTicks div 32 mod 16, 1, dAngle);
   972                 end;
   972                 end;
   973 
   973 
   974 
   974