hedgewars/uStore.pas
changeset 809 b33c2def1576
parent 806 d397c502a5dd
child 821 e6c0408b54ed
--- a/hedgewars/uStore.pas	Sat Mar 08 11:00:04 2008 +0000
+++ b/hedgewars/uStore.pas	Sun Mar 09 12:33:54 2008 +0000
@@ -369,10 +369,10 @@
 procedure DrawRotatedF(Sprite: TSprite; X, Y, Frame: LongInt; Angle: real);
 begin
 glPushMatrix;
-glTranslatef(X - SpritesData[Sprite].Width div 2, Y - SpritesData[Sprite].Width div 2, 0);
+glTranslatef(X, Y, 0);
 glRotatef(Angle, 0, 0, 1);
 
-DrawSprite(Sprite, 0, 0, Frame, nil);
+DrawSprite(Sprite, -SpritesData[Sprite].Width div 2, -SpritesData[Sprite].Width div 2, Frame, nil);
 
 glPopMatrix
 end;