- fix negative rotation speed not working

This commit is contained in:
Magnus Norddahl 2018-06-02 20:35:51 +02:00
parent 94d1a73ae8
commit 0dbcdc8a9c

View file

@ -94,7 +94,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);