From 39c3a26bfa50aae3b189773a75fe77cbebd17064 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Wed, 10 Sep 2014 16:17:30 +0700 Subject: ZVISION: Fix setStateFlag->setStateValue in HotMov control --- engines/zvision/scripting/controls/hotmov_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/zvision/scripting/controls/hotmov_control.cpp b/engines/zvision/scripting/controls/hotmov_control.cpp index 8ffc3392be..b39292f1c5 100644 --- a/engines/zvision/scripting/controls/hotmov_control.cpp +++ b/engines/zvision/scripting/controls/hotmov_control.cpp @@ -51,7 +51,7 @@ HotMovControl::HotMovControl(ZVision *engine, uint32 key, Common::SeekableReadSt _num_cycles = 0; _num_frames = 0; - _engine->getScriptManager()->setStateFlag(_key, 0); + _engine->getScriptManager()->setStateValue(_key, 0); // Loop until we find the closing brace Common::String line = stream.readLine(); @@ -129,7 +129,7 @@ bool HotMovControl::process(uint32 deltaTimeInMillis) { if (_cycle != _num_cycles) renderFrame(_cur_frame); else - _engine->getScriptManager()->setStateFlag(_key, 2); + _engine->getScriptManager()->setStateValue(_key, 2); _frame_time = _animation->frameTime(); } -- cgit v1.2.3