[Fix] Small issue with spritesheets that don't have sx == sy

This commit is contained in:
Allanis 2013-02-26 23:44:54 +00:00
parent f603df48cc
commit cc1d09c4b5

View File

@ -335,7 +335,7 @@ void gl_getSpriteFromDir(int* x, int* y, const glTexture* t, const double dir) {
if(s > (sy*sx-1)) s = s % (sy*sx);
*x = s % sx;
*y = s / sy;
*y = s / sx;
}
// ================