1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 22:06:45 +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 = ""; std::string texture = "";
// Use particle textures for non-harmful effects
if (!magicEffect->mParticle.empty() && !(magicEffect->mData.mFlags & ESM::MagicEffect::Harmful)) if (!magicEffect->mParticle.empty() && !(magicEffect->mData.mFlags & ESM::MagicEffect::Harmful))
texture = magicEffect->mParticle; texture = magicEffect->mParticle;

View file

@ -74,7 +74,8 @@ namespace
if (count != 0) if (count != 0)
speed /= count; 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 ( const ESM::MagicEffect *magicEffect = MWBase::Environment::get().getWorld()->getStore().get<ESM::MagicEffect>().find (
effects.mList.begin()->mEffectID); effects.mList.begin()->mEffectID);