1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Add comments

This commit is contained in:
Allofich 2016-09-08 02:24:47 +09:00
parent 502a758eff
commit 85349da26c
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);