Fixed: Models did not take SpriteRotation into account

This commit is contained in:
nashmuhandes 2017-02-09 16:35:28 +08:00 committed by Christoph Oelckers
parent a4d146c843
commit 3d9673af44

View file

@ -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