1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00

Also update local map when paused, to make it update properly when teleporting via GUI/console

This commit is contained in:
scrawl 2014-05-11 15:23:44 +02:00
parent 7428511ea0
commit 54a893994a

View file

@ -380,6 +380,10 @@ void RenderingManager::update (float duration, bool paused)
mCamera->update(duration, paused); mCamera->update(duration, paused);
Ogre::SceneNode *node = data.getBaseNode();
Ogre::Quaternion orient = node->_getDerivedOrientation();
mLocalMap->updatePlayer(playerPos, orient);
if(paused) if(paused)
return; return;
@ -393,10 +397,6 @@ void RenderingManager::update (float duration, bool paused)
mSkyManager->setGlare(mOcclusionQuery->getSunVisibility()); mSkyManager->setGlare(mOcclusionQuery->getSunVisibility());
Ogre::SceneNode *node = data.getBaseNode();
Ogre::Quaternion orient = node->_getDerivedOrientation();
mLocalMap->updatePlayer(playerPos, orient);
mWater->updateUnderwater(world->isUnderwater(player.getCell(), cam)); mWater->updateUnderwater(world->isUnderwater(player.getCell(), cam));