mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Add comments
This commit is contained in:
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…
x
Reference in New Issue
Block a user