From e92b2547b9010757c600e98579a93fdaf57e86bc Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 22 Sep 2019 15:40:02 -0700 Subject: XEEN: Fix ending monster suffering elemental damage --- engines/xeen/interface_scene.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/xeen') diff --git a/engines/xeen/interface_scene.cpp b/engines/xeen/interface_scene.cpp index 5e24403b0c..c40f65d589 100644 --- a/engines/xeen/interface_scene.cpp +++ b/engines/xeen/interface_scene.cpp @@ -775,12 +775,12 @@ void InterfaceScene::animate3d() { monster._effect3 = 2; } } - } - } else { - monster._effect3 = (monster._effect3 + 1) % 8; - if (monster._effect3 == 0) { - MonsterStruct &monsterData = *monster._monsterData; - monster._effect1 = monster._effect2 = monsterData._animationEffect; + } else { + monster._effect3 = (monster._effect3 + 1) % 8; + if (monster._effect3 == 0) { + MonsterStruct &monsterData = *monster._monsterData; + monster._effect1 = monster._effect2 = monsterData._animationEffect; + } } } } -- cgit v1.2.3