- fix negative rotation speed not working

(cherry picked from commit 0dbcdc8a9c)
This commit is contained in:
Magnus Norddahl 2018-06-02 20:35:51 +02:00 committed by drfrag666
parent ff5c488a0f
commit 06496c7df7

View file

@ -95,7 +95,7 @@ void FModelRenderer::RenderModel(float x, float y, float z, FSpriteModelFrame *s
if (smf->flags & MDL_ROTATING)
{
if (smf->rotationSpeed > 0.0000000001)
if (smf->rotationSpeed > 0.0000000001 || smf->rotationSpeed < -0.0000000001)
{
double turns = (I_GetTime() + I_GetTimeFrac()) / (200.0 / smf->rotationSpeed);
turns -= floor(turns);