aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-07-24 15:15:35 +0000
committerTravis Howell2003-07-24 15:15:35 +0000
commit316162fe19cfb3572dc04466963028c5ec10245c (patch)
tree068b447658737f32216c08bd9058220848159d22
parent31efc22c976f133b8885bc8384027907af9b8177 (diff)
downloadscummvm-rg350-316162fe19cfb3572dc04466963028c5ec10245c.tar.gz
scummvm-rg350-316162fe19cfb3572dc04466963028c5ec10245c.tar.bz2
scummvm-rg350-316162fe19cfb3572dc04466963028c5ec10245c.zip
Ooops
svn-id: r9171
-rw-r--r--simon/simon.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 7ed2014afb..7bc8ef60e2 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -2389,7 +2389,8 @@ void SimonEngine::expire_vga_timers() {
_vga_tick_counter++;
while (vte->delay) {
- if (!--vte->delay) {
+ // not quite ok, good enough
+ if ((int16)(vte->delay -= 5) <= 0) {
uint16 cur_file = vte->cur_vga_file;
uint16 cur_unk = vte->sprite_id;
byte *script_ptr = vte->script_pointer;
@@ -2398,6 +2399,8 @@ void SimonEngine::expire_vga_timers() {
delete_vga_timer(vte);
if (script_ptr == NULL) {
+ // special scroll timer
+ scroll_timeout();
} else {
vc_resume_sprite(script_ptr, cur_file, cur_unk);
}