aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRoland van Laar2019-12-22 20:58:18 +0100
committerEugene Sandulenko2019-12-22 21:03:16 +0100
commite11311e9b63f9ad08adea2e7cde008ad079e0bcc (patch)
tree6e10a2d41f8ad9f364d1c9410f5fd0e512353f68 /engines
parentb5ff682fd28c6440a9a9d5c1e38e07cb00def73a (diff)
downloadscummvm-rg350-e11311e9b63f9ad08adea2e7cde008ad079e0bcc.tar.gz
scummvm-rg350-e11311e9b63f9ad08adea2e7cde008ad079e0bcc.tar.bz2
scummvm-rg350-e11311e9b63f9ad08adea2e7cde008ad079e0bcc.zip
DIRECTOR: Add wait between beeps.
The delay was choosen based on hearing the delay in the original Director 4 beep script.
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-funcs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp
index 0d8d98210d..ecb43337d4 100644
--- a/engines/director/lingo/lingo-funcs.cpp
+++ b/engines/director/lingo/lingo-funcs.cpp
@@ -355,8 +355,11 @@ void Lingo::func_cursor(int c) {
}
void Lingo::func_beep(int repeats) {
- for (int r = 1; r <= repeats; r++)
+ for (int r = 1; r <= repeats; r++) {
_vm->getSoundManager()->systemBeep();
+ if (r < repeats)
+ g_system->delayMillis(400);
+ }
}
int Lingo::func_marker(int m) {