Don't play area vfx for 0-area touch spells that hit non-actors

coverity_scan^2
Allofich 8 years ago
parent 513f754529
commit 37cc4e9efe

@ -3176,7 +3176,8 @@ namespace MWWorld
if (effectIt->mArea <= 0)
{
mRendering->spawnEffect("meshes\\" + areaStatic->mModel, texture, origin, 1.0f);
if (effectIt->mRange == ESM::RT_Target)
mRendering->spawnEffect("meshes\\" + areaStatic->mModel, texture, origin, 1.0f);
continue;
}
else

Loading…
Cancel
Save