1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-02 00:04:31 +00:00

Remove redundant std::floor

This commit is contained in:
Evil Eye 2025-10-05 14:19:49 +02:00
parent 06cb00bb0b
commit 23e9d1ac0c

View file

@ -132,7 +132,7 @@ namespace SceneUtil
mStartingTime = nv->getFrameStamp()->getSimulationTime();
double time = nv->getFrameStamp()->getSimulationTime();
int index = static_cast<int>(std::floor(time * 16)) % mTextures.size();
int index = static_cast<int>(time * 16) % mTextures.size();
stateset->setTextureAttribute(
mTexUnit, mTextures[index], osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE);