hedgewars/uStore.pas
changeset 294 92a7ccd67bb9
parent 281 5b483aa9f2ab
child 351 29bc9c36ad5f
--- a/hedgewars/uStore.pas	Sat Dec 09 19:47:31 2006 +0000
+++ b/hedgewars/uStore.pas	Sun Dec 10 12:09:32 2006 +0000
@@ -419,7 +419,7 @@
 begin
 r.x:= Step * 32;
 r.y:= Pos * 32;
-if Dir = -1 then r.x:= cHHSurfaceWidth - 32 - r.x;
+if Dir = -1 then r.x:= HHSurface.w - 32 - r.x;
 r.w:= 32;
 r.h:= 32;
 DrawFromRect(X, Y, @r, HHSurface, Surface)