Keep the Broken Sword cutscene players from using up all available CPU.
Probably a regression from the recent video decoder rewrite, but I haven't checked if it also present in other engines. svn-id: r49153
This commit is contained in:
parent
c874ff15a8
commit
8ed56e1834
2 changed files with 4 additions and 0 deletions
|
@ -293,6 +293,8 @@ bool MoviePlayer::playVideo() {
|
|||
while (_vm->_system->getEventManager()->pollEvent(event))
|
||||
if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE) || event.type == Common::EVENT_LBUTTONUP)
|
||||
return false;
|
||||
|
||||
_vm->_system->delayMillis(10);
|
||||
}
|
||||
|
||||
return !_vm->shouldQuit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue