From 8d1c5da0f623af22e498fb0d88a9f7c62d133e01 Mon Sep 17 00:00:00 2001 From: Inori Date: Wed, 28 Aug 2019 17:30:56 -0400 Subject: [PATCH] Allow negative Sprite angle values --- src/transform.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transform.h b/src/transform.h index 7a129f90..c501f941 100644 --- a/src/transform.h +++ b/src/transform.h @@ -127,8 +127,10 @@ private: { if (rotation >= 360 || 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 cosine = (float) cos(angle);