mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 04:34:50 +00:00
Enabled skipping the current line of text if a mouse click occurs.
svn-id: r43085
This commit is contained in:
parent
5ea44b9b5e
commit
3ce16763c7
@ -330,9 +330,16 @@ void Game::loop() {
|
||||
uint speechDuration = kBaseSpeechDuration +
|
||||
speechFrame->getLength() * kSpeechTimeUnit /
|
||||
(128 / 16 + 1);
|
||||
|
||||
if ((_vm->_system->getMillis() - _speechTick) >= speechDuration) {
|
||||
|
||||
// If the current speech text has expired or the user clicked a mouse button,
|
||||
// advance to the next line of text
|
||||
if (_vm->_mouse->lButtonPressed() ||
|
||||
_vm->_mouse->rButtonPressed() ||
|
||||
(_vm->_system->getMillis() - _speechTick) >= speechDuration) {
|
||||
|
||||
_shouldExitLoop = true;
|
||||
_vm->_mouse->lButtonSet(false);
|
||||
_vm->_mouse->rButtonSet(false);
|
||||
} else {
|
||||
_shouldExitLoop = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user