Add code for isVgaQueueEmpty() in PP

svn-id: r24031
This commit is contained in:
Travis Howell 2006-09-30 07:24:30 +00:00
parent 5c3f7e4d5d
commit b828f5e3bc

View File

@ -142,7 +142,16 @@ bool AGOSEngine::kickoffTimeEvents() {
} }
bool AGOSEngine::isVgaQueueEmpty() { 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) { void AGOSEngine::addVgaEvent(uint16 num, const byte *code_ptr, uint16 cur_sprite, uint16 curZoneNum, int32 param) {