mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 22:15:33 +02:00
Allow negative Sprite angle values
This commit is contained in:
parent
d57079bbbc
commit
8d1c5da0f6
1 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,10 @@ private:
|
||||||
{
|
{
|
||||||
if (rotation >= 360 || rotation < -360)
|
if (rotation >= 360 || rotation < -360)
|
||||||
rotation = (float) fmod(rotation, 360);
|
rotation = (float) fmod(rotation, 360);
|
||||||
if (rotation < 0)
|
|
||||||
rotation += 360;
|
// RGSS allows negative angles
|
||||||
|
//if (rotation < 0)
|
||||||
|
// rotation += 360;
|
||||||
|
|
||||||
float angle = rotation * 3.141592654f / 180.0f;
|
float angle = rotation * 3.141592654f / 180.0f;
|
||||||
float cosine = (float) cos(angle);
|
float cosine = (float) cos(angle);
|
||||||
|
|
Loading…
Add table
Reference in a new issue