Skip to content

Commit

Permalink
ZVISION: Fix setStateFlag->setStateValue in HotMov control
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Sep 10, 2014
1 parent 6ae414f commit 39c3a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/zvision/scripting/controls/hotmov_control.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 39c3a26

Please sign in to comment.