Add comments

pull/59/head^2
Allofich 8 years ago
parent 502a758eff
commit 85349da26c

@ -543,6 +543,7 @@ namespace MWMechanics
std::string texture = "";
// Use particle textures for non-harmful effects
if (!magicEffect->mParticle.empty() && !(magicEffect->mData.mFlags & ESM::MagicEffect::Harmful))
texture = magicEffect->mParticle;

@ -74,7 +74,8 @@ namespace
if (count != 0)
speed /= count;
if (projectileEffects.mList.size() == 1)
// in the original engine, the particle texture is only used if there is only one projectile
if (projectileEffects.mList.size() == 1)
{
const ESM::MagicEffect *magicEffect = MWBase::Environment::get().getWorld()->getStore().get<ESM::MagicEffect>().find (
effects.mList.begin()->mEffectID);

Loading…
Cancel
Save