aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_mr.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-19 08:55:04 +0000
committerJohannes Schickel2009-08-19 08:55:04 +0000
commitca6fa52b1a62e7635e7f3cdb022ac0a25b22abd2 (patch)
treead3db82c6e214a282e5c2b8c391c813ba34dada6 /engines/kyra/script_mr.cpp
parent6145ed384b3cb8b143efaafd7402b0bcdc572706 (diff)
downloadscummvm-rg350-ca6fa52b1a62e7635e7f3cdb022ac0a25b22abd2.tar.gz
scummvm-rg350-ca6fa52b1a62e7635e7f3cdb022ac0a25b22abd2.tar.bz2
scummvm-rg350-ca6fa52b1a62e7635e7f3cdb022ac0a25b22abd2.zip
Cleanup.
svn-id: r43535
Diffstat (limited to 'engines/kyra/script_mr.cpp')
-rw-r--r--engines/kyra/script_mr.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/kyra/script_mr.cpp b/engines/kyra/script_mr.cpp
index 819bf838ca..9943fe419d 100644
--- a/engines/kyra/script_mr.cpp
+++ b/engines/kyra/script_mr.cpp
@@ -266,7 +266,7 @@ int KyraEngine_MR::o3_wipeDownMouseItem(EMCState *script) {
for (int curY = y, height = 20; height > 0; height -= 2, curY += 2) {
restoreGfxRect32x32(x, y);
_screen->setNewShapeHeight(shape, height);
- uint32 waitTime = _system->getMillis() + _tickLength;
+ const uint32 waitTime = _system->getMillis() + _tickLength;
_screen->drawShape(0, shape, x, curY, 0, 0);
_screen->updateScreen();
delayUntil(waitTime);
@@ -1131,15 +1131,7 @@ int KyraEngine_MR::o3d_updateAnim(EMCState *script) {
int KyraEngine_MR::o3d_delay(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_MR::o3d_delay(%p) (%d)", (const void *)script, stackPos(0));
- const uint32 endTime = _system->getMillis() + stackPos(0) * _tickLength;
- while (_system->getMillis() < endTime) {
- if (_chatText)
- updateWithText();
- else
- update();
-
- _system->delayMillis(10);
- }
+ delayUntil(_system->getMillis() + stackPos(0) * _tickLength, false, true);
return 0;
}