summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-12 16:27:26 +0200
committeraap <aap@papnet.eu>2020-05-12 16:27:39 +0200
commit40829b52422cfcd031961fabf60ad99b3ae69ccc (patch)
tree73cb776ada029a62cdc026e35f3fdbcc9c738e8f /src/render/Sprite.cpp
parentfix garages (diff)
downloadre3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.gz
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.bz2
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.lz
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.xz
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.tar.zst
re3-40829b52422cfcd031961fabf60ad99b3ae69ccc.zip
Diffstat (limited to 'src/render/Sprite.cpp')
-rw-r--r--src/render/Sprite.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp
index 1dd1aaab..9631aced 100644
--- a/src/render/Sprite.cpp
+++ b/src/render/Sprite.cpp
@@ -267,8 +267,8 @@ CSprite::RenderBufferedOneXLUSprite_Rotate_Dimension(float x, float y, float z,
{
m_bFlushSpriteBufferSwitchZTest = 0;
// TODO: replace with lookup
- float c = Cos(DEGTORAD(rotation));
- float s = Sin(DEGTORAD(rotation));
+ float c = Cos(rotation);
+ float s = Sin(rotation);
float xs[4];
float ys[4];
@@ -580,8 +580,8 @@ CSprite::RenderBufferedOneXLUSprite2D_Rotate_Dimension(float x, float y, float w
{
m_bFlushSpriteBufferSwitchZTest = 1;
CRGBA col(intens * colour.red >> 8, intens * colour.green >> 8, intens * colour.blue >> 8, alpha);
- float c = Cos(DEGTORAD(rotation));
- float s = Sin(DEGTORAD(rotation));
+ float c = Cos(rotation);
+ float s = Sin(rotation);
Set6Vertices2D(&SpriteBufferVerts[6 * nSpriteBufferIndex],
x + c*w - s*h,