1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-16 16:20:53 +00:00

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

This commit is contained in:
Allofich 2016-09-22 00:00:11 +09:00
parent 513f754529
commit 37cc4e9efe

View File

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