From 04a2ac14854c302c88b9f17cb5c9dbacf1fa6a89 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 16 Mar 2008 17:16:17 +0000 Subject: - implement zanthIdleChat() - bug fix for zanthRandomChat() svn-id: r31147 --- engines/kyra/kyra_v2.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/kyra/kyra_v2.cpp') diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index 84c2cd1029..69473257bb 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -1593,14 +1593,14 @@ void KyraEngine_v2::showIdleAnim() { 0x04, 0x06, 0x07, 0x08, 0x04, 0x09, 0x0A, 0x0B, 0xFF, 0x00 }; - if (queryGameFlag(0x159)) + if (queryGameFlag(0x159 && _flags.isTalkie)) return; static bool scriptAnimation = false; - //if (!scriptAnimation) { - // scriptAnimation = true; - // sub_2715D(); - //} else { + if (!scriptAnimation && _flags.isTalkie) { + scriptAnimation = true; + zanthIdleChat(); + } else { scriptAnimation = false; if (_loadedZTable > 8) return; @@ -1619,7 +1619,7 @@ void KyraEngine_v2::showIdleAnim() { runIdleScript(script); _lastIdleScript = script; - //} + } } void KyraEngine_v2::runIdleScript(int script) { -- cgit v1.2.3