mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-02 20:04:31 +00:00
Remove redundant std::floor
This commit is contained in:
parent
06cb00bb0b
commit
23e9d1ac0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue