Fix travis build error and warnings

pull/35/head
Allofich 9 years ago
parent 1910128e9c
commit cad41599cf

@ -121,9 +121,8 @@ 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);
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…
Cancel
Save