mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Fix some uninitialised variables found by static analysis
This commit is contained in:
parent
6bf3932279
commit
c996702b56
3 changed files with 8 additions and 5 deletions
|
@ -654,6 +654,7 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
||||||
, mAnimation(anim)
|
, mAnimation(anim)
|
||||||
, mIdleState(CharState_None)
|
, mIdleState(CharState_None)
|
||||||
, mMovementState(CharState_None)
|
, mMovementState(CharState_None)
|
||||||
|
, mAdjustMovementAnimSpeed(false)
|
||||||
, mHasMovedInXY(false)
|
, mHasMovedInXY(false)
|
||||||
, mMovementAnimationControlled(true)
|
, mMovementAnimationControlled(true)
|
||||||
, mDeathState(CharState_None)
|
, mDeathState(CharState_None)
|
||||||
|
|
|
@ -131,6 +131,10 @@ namespace MWRender
|
||||||
, mRootNode(rootNode)
|
, mRootNode(rootNode)
|
||||||
, mResourceSystem(resourceSystem)
|
, mResourceSystem(resourceSystem)
|
||||||
, mFogDepth(0.f)
|
, mFogDepth(0.f)
|
||||||
|
, mUnderwaterColor(fallback->getFallbackColour("Water_UnderwaterColor"))
|
||||||
|
, mUnderwaterWeight(fallback->getFallbackFloat("Water_UnderwaterColorWeight"))
|
||||||
|
, mUnderwaterFog(0.f)
|
||||||
|
, mUnderwaterIndoorFog(fallback->getFallbackFloat("Water_UnderwaterIndoorFog"))
|
||||||
, mNightEyeFactor(0.f)
|
, mNightEyeFactor(0.f)
|
||||||
{
|
{
|
||||||
osg::ref_ptr<SceneUtil::LightManager> lightRoot = new SceneUtil::LightManager;
|
osg::ref_ptr<SceneUtil::LightManager> lightRoot = new SceneUtil::LightManager;
|
||||||
|
@ -202,10 +206,6 @@ namespace MWRender
|
||||||
updateProjectionMatrix();
|
updateProjectionMatrix();
|
||||||
mStateUpdater->setFogEnd(mViewDistance);
|
mStateUpdater->setFogEnd(mViewDistance);
|
||||||
|
|
||||||
mUnderwaterColor = fallback->getFallbackColour("Water_UnderwaterColor");
|
|
||||||
mUnderwaterWeight = fallback->getFallbackFloat("Water_UnderwaterColorWeight");
|
|
||||||
mUnderwaterIndoorFog = fallback->getFallbackFloat("Water_UnderwaterIndoorFog");
|
|
||||||
|
|
||||||
mRootNode->getOrCreateStateSet()->addUniform(new osg::Uniform("near", mNearClip));
|
mRootNode->getOrCreateStateSet()->addUniform(new osg::Uniform("near", mNearClip));
|
||||||
mRootNode->getOrCreateStateSet()->addUniform(new osg::Uniform("far", mViewDistance));
|
mRootNode->getOrCreateStateSet()->addUniform(new osg::Uniform("far", mViewDistance));
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,9 @@ namespace SceneUtil
|
||||||
, mLastFrameNumber(0)
|
, mLastFrameNumber(0)
|
||||||
{}
|
{}
|
||||||
LightListCallback(const LightListCallback& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)
|
LightListCallback(const LightListCallback& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY)
|
||||||
: osg::Object(copy, copyop), osg::NodeCallback(copy, copyop), mLightManager(copy.mLightManager)
|
: osg::Object(copy, copyop), osg::NodeCallback(copy, copyop)
|
||||||
|
, mLightManager(copy.mLightManager)
|
||||||
|
, mLastFrameNumber(0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
META_Object(NifOsg, LightListCallback)
|
META_Object(NifOsg, LightListCallback)
|
||||||
|
|
Loading…
Reference in a new issue