aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-01-12 16:36:01 +0000
committerTorbjörn Andersson2004-01-12 16:36:01 +0000
commitcc67c137114c299e444ba597a4cc0143da8d8bc1 (patch)
tree642f10e11eae26463431d949ea5c03a5d36f2e22 /sword2
parent5552b628a6498ffc650b7c58b39978eb3eea5647 (diff)
downloadscummvm-rg350-cc67c137114c299e444ba597a4cc0143da8d8bc1.tar.gz
scummvm-rg350-cc67c137114c299e444ba597a4cc0143da8d8bc1.tar.bz2
scummvm-rg350-cc67c137114c299e444ba597a4cc0143da8d8bc1.zip
Don't hog the CPU when playing cutscenes.
svn-id: r12342
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/d_draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/driver/d_draw.cpp b/sword2/driver/d_draw.cpp
index f7f0f51add..208d3872cc 100644
--- a/sword2/driver/d_draw.cpp
+++ b/sword2/driver/d_draw.cpp
@@ -203,7 +203,7 @@ int32 MoviePlayer::play(char *filename, MovieTextObject *text[], uint8 *musicOut
// frame rate the original movies had, or even if it
// was constant, but this seems to work reasonably.
- while (_vm->_system->get_msecs() < ticks);
+ _vm->sleepUntil(ticks);
ticks += 82;
}