hedgewars/uStore.pas
changeset 2230 d6963f72d21a
parent 2229 081081a61a16
child 2240 7ce9e6b7be3b
--- a/hedgewars/uStore.pas	Mon Jul 06 11:37:03 2009 +0000
+++ b/hedgewars/uStore.pas	Mon Jul 06 22:46:33 2009 +0000
@@ -526,10 +526,7 @@
 
 procedure DrawSpriteClipped(Sprite: TSprite; X, Y, TopY, RightX, BottomY, LeftX: LongInt);
 var r: TSDL_Rect;
-    numFramesFirstCol: LongInt;
 begin
-numFramesFirstCol:= SpritesData[Sprite].imageHeight div SpritesData[Sprite].Height;
-
 r.x:= 0;
 r.y:= 0;
 r.w:= SpritesData[Sprite].Width;
@@ -547,6 +544,7 @@
 
 dec(r.h, r.y);
 dec(r.w, r.x);
+
 DrawFromRect(X + r.x, Y + r.y, @r, SpritesData[Sprite].Texture)
 end;