aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/event.cpp')
-rw-r--r--engines/agos/event.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp
index e4f94e0f47..4cef41ac54 100644
--- a/engines/agos/event.cpp
+++ b/engines/agos/event.cpp
@@ -160,6 +160,20 @@ bool AGOSEngine::isVgaQueueEmpty() {
return result;
}
+void AGOSEngine::haltAnimation() {
+ VgaTimerEntry *vte = _vgaTimerList;
+
+ _lockWord |= 0x10;
+
+ while (vte->delay) {
+ vte->delay += 10;
+ }
+}
+
+void AGOSEngine::restartAnimation() {
+ _lockWord &= ~0x10;
+}
+
void AGOSEngine::addVgaEvent(uint16 num, const byte *code_ptr, uint16 cur_sprite, uint16 curZoneNum, int32 param) {
VgaTimerEntry *vte;