forked from mirror/openmw-tes3mp
Fix travis build error and warnings
This commit is contained in:
parent
1910128e9c
commit
cad41599cf
2 changed files with 4 additions and 10 deletions
|
@ -120,10 +120,9 @@ namespace MWClass
|
|||
{
|
||||
MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(ptr);
|
||||
|
||||
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
||||
const ESM::MagicEffect *effect;
|
||||
int index = effect->effectStringToId("sEffectTelekinesis");
|
||||
effect = store.get<ESM::MagicEffect>().find(index);
|
||||
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
||||
int index = ESM::MagicEffect::effectStringToId("sEffectTelekinesis");
|
||||
const ESM::MagicEffect *effect = store.get<ESM::MagicEffect>().find(index);
|
||||
|
||||
animation->addSpellCastGlow(effect); // TODO: Telekinesis glow should only be as long as the door animation
|
||||
}
|
||||
|
|
|
@ -183,11 +183,6 @@ namespace
|
|||
return mDone;
|
||||
}
|
||||
|
||||
int getTexUnit()
|
||||
{
|
||||
return mTexUnit;
|
||||
}
|
||||
|
||||
void setWatchedSpellGlow(osg::ref_ptr<GlowUpdater> watched)
|
||||
{
|
||||
mWatchedSpellGlow = watched;
|
||||
|
@ -1190,7 +1185,7 @@ namespace MWRender
|
|||
|
||||
void Animation::addSpellCastGlow(const ESM::MagicEffect *effect){
|
||||
|
||||
osg::Vec4f glowColor = {1,1,1,1};
|
||||
osg::Vec4f glowColor(1,1,1,1);
|
||||
glowColor.x() = effect->mData.mRed / 255.f;
|
||||
glowColor.y() = effect->mData.mGreen / 255.f;
|
||||
glowColor.z() = effect->mData.mBlue / 255.f;
|
||||
|
|
Loading…
Reference in a new issue