hedgewars/uRender.pas
changeset 6318 ca12368acc16
parent 5565 1a326ba319c9
child 6322 b310f0bc8dde
--- a/hedgewars/uRender.pas	Thu Nov 10 23:14:40 2011 +0300
+++ b/hedgewars/uRender.pas	Thu Nov 10 17:37:24 2011 -0500
@@ -159,10 +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);
 
-if Dir < 0 then
-    hw:= w div -2
-else
-    hw:= w div 2;
+hw:= w div Dir;
 
 nx:= round(Texture^.w / w); // number of horizontal frames
 ny:= round(Texture^.h / h); // number of vertical frames