From 3d9673af44e54c92a963458089016b963f4e40b7 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Thu, 9 Feb 2017 16:35:28 +0800 Subject: [PATCH] Fixed: Models did not take SpriteRotation into account --- src/gl/models/gl_models.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gl/models/gl_models.cpp b/src/gl/models/gl_models.cpp index 0bfc059a1..fe974f4df 100644 --- a/src/gl/models/gl_models.cpp +++ b/src/gl/models/gl_models.cpp @@ -1017,6 +1017,9 @@ void gl_RenderModel(GLSprite * spr) // Model space => World space gl_RenderState.mModelMatrix.translate(spr->x, spr->z, spr->y ); + // [Nash] take SpriteRotation into account + angle += spr->actor->SpriteRotation.Degrees; + if (spr->actor->renderflags & RF_INTERPOLATEANGLES) { // [Nash] use interpolated angles