hedgewars/uRender.pas
changeset 6322 b310f0bc8dde
parent 6318 ca12368acc16
child 6323 c1aa6a3c84a7
--- a/hedgewars/uRender.pas	Fri Nov 11 01:40:23 2011 +0100
+++ b/hedgewars/uRender.pas	Thu Nov 10 21:11:57 2011 -0500
@@ -159,7 +159,7 @@
 // Any reason for this call? And why only in t direction, not s?
 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
 
-hw:= w div Dir;
+hw:= w div (2 div Dir);
 
 nx:= round(Texture^.w / w); // number of horizontal frames
 ny:= round(Texture^.h / h); // number of vertical frames