diff -r 83b93a2d2741 -r ca12368acc16 hedgewars/uRender.pas --- 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