|
|
@ -36,6 +36,7 @@
|
|
|
|
#include "../mwbase/statemanager.hpp"
|
|
|
|
#include "../mwbase/statemanager.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwmechanics/creaturestats.hpp"
|
|
|
|
#include "../mwmechanics/creaturestats.hpp"
|
|
|
|
|
|
|
|
#include "../mwmechanics/npcstats.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
|
|
|
@ -346,6 +347,9 @@ void RenderingManager::update (float duration, bool paused)
|
|
|
|
MWBase::Environment::get().getWindowManager()->setScreenFactor(std::max(0.f, 1.f-(blind / 100.f)));
|
|
|
|
MWBase::Environment::get().getWindowManager()->setScreenFactor(std::max(0.f, 1.f-(blind / 100.f)));
|
|
|
|
setAmbientMode();
|
|
|
|
setAmbientMode();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (player.getClass().getNpcStats(player).isWerewolf())
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->setWerewolfOverlay(mCamera->isFirstPerson());
|
|
|
|
|
|
|
|
|
|
|
|
// player position
|
|
|
|
// player position
|
|
|
|
MWWorld::RefData &data = player.getRefData();
|
|
|
|
MWWorld::RefData &data = player.getRefData();
|
|
|
|
Ogre::Vector3 playerPos(data.getPosition().pos);
|
|
|
|
Ogre::Vector3 playerPos(data.getPosition().pos);
|
|
|
|