aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-09-30 07:24:30 +0000
committerTravis Howell2006-09-30 07:24:30 +0000
commitb828f5e3bc6df098bf8a539fff9bea459becdba2 (patch)
tree1525abf48cc40077d2cc2c5215ede0b968c17480
parent5c3f7e4d5de8792f047b3f7f24f1a81ad6415a0a (diff)
downloadscummvm-rg350-b828f5e3bc6df098bf8a539fff9bea459becdba2.tar.gz
scummvm-rg350-b828f5e3bc6df098bf8a539fff9bea459becdba2.tar.bz2
scummvm-rg350-b828f5e3bc6df098bf8a539fff9bea459becdba2.zip
Add code for isVgaQueueEmpty() in PP
svn-id: r24031
-rw-r--r--engines/agos/event.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp
index 33b7c661e9..4d78f65584 100644
--- a/engines/agos/event.cpp
+++ b/engines/agos/event.cpp
@@ -142,7 +142,16 @@ bool AGOSEngine::kickoffTimeEvents() {
}
bool AGOSEngine::isVgaQueueEmpty() {
- return true;
+ VgaTimerEntry *vte;
+ bool result = false;
+
+ while (vte->delay) {
+ if (vte->cur_vga_file == _variableArray[999] && vte->sprite_id >= 100) {
+ result = true;
+ break;
+ }
+ }
+ return result;
}
void AGOSEngine::addVgaEvent(uint16 num, const byte *code_ptr, uint16 cur_sprite, uint16 curZoneNum, int32 param) {