[Fix] Small issue with spritesheets that don't have sx == sy
This commit is contained in:
parent
f603df48cc
commit
cc1d09c4b5
@ -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);
|
if(s > (sy*sx-1)) s = s % (sy*sx);
|
||||||
|
|
||||||
*x = s % sx;
|
*x = s % sx;
|
||||||
*y = s / sy;
|
*y = s / sx;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ================
|
// ================
|
||||||
|
Loading…
Reference in New Issue
Block a user