- fixed compilation with Clang and GCC

src/gl/scene/gl_flats.cpp:215:3: error: cannot jump from this goto statement to its label
src/r_data/models/models.cpp💯18: error: no member named 'floor' in namespace 'std'
This commit is contained in:
alexey.lysiuk 2018-06-02 09:43:33 +03:00
commit 81f042f08b
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ void FModelRenderer::RenderModel(float x, float y, float z, FSpriteModelFrame *s
if (smf->rotationSpeed > 0.0000000001)
{
double turns = (I_GetTime() + I_GetTimeFrac()) / (200.0 / smf->rotationSpeed);
turns -= std::floor(turns);
turns -= floor(turns);
rotateOffset = turns * 360.0;
}
else