From 37cc4e9efec3d766cee0905b904916b38ed19ec9 Mon Sep 17 00:00:00 2001 From: Allofich Date: Thu, 22 Sep 2016 00:00:11 +0900 Subject: [PATCH] Don't play area vfx for 0-area touch spells that hit non-actors --- apps/openmw/mwworld/worldimp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index b5ef7de52..b877aef34 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -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