From 80c1baa5965e29dab24c37ba33eb5af64bd3865d Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Sat, 17 Sep 2016 12:08:58 -0500 Subject: [PATCH] Fixed: Pitch was rotating around the wrong axis. --- src/gl/scene/gl_sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index b63732e3b..af76de826 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -122,7 +122,7 @@ void GLSprite::CalculateVertices(FVector3 *v) mat.Translate(x, z, y); mat.Rotate(0, 1, 0, 270. - actor->Angles.Yaw.Degrees); - mat.Rotate(0, 0, 1, pitch.Degrees); + mat.Rotate(1, 0, 0, pitch.Degrees); if (actor->renderflags & RF_ROLLCENTER) {