diff options
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/events.cpp | 10 | ||||
-rw-r--r-- | engines/tsage/events.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/tsage/events.cpp b/engines/tsage/events.cpp index 010117ec78..7aadf62b8d 100644 --- a/engines/tsage/events.cpp +++ b/engines/tsage/events.cpp @@ -40,6 +40,7 @@ EventsClass::EventsClass() { _priorFrameTime = 0; _prevDelayFrame = 0; _saver->addListener(this); + _saver->addLoadNotifier(&EventsClass::loadNotifierProc); } bool EventsClass::pollEvent() { @@ -315,4 +316,13 @@ void EventsClass::listenerSynchronize(Serializer &s) { } } +void EventsClass::loadNotifierProc(bool postFlag) { + if (postFlag) { + if (_globals->_events._lastCursor == CURSOR_NONE) + _globals->_events._lastCursor = _globals->_events._currentCursor; + else + _globals->_events._lastCursor = CURSOR_NONE; + } +} + } // end of namespace tSage diff --git a/engines/tsage/events.h b/engines/tsage/events.h index e0fbd88745..772de24b5a 100644 --- a/engines/tsage/events.h +++ b/engines/tsage/events.h @@ -100,6 +100,7 @@ public: void delay(int numFrames); virtual void listenerSynchronize(Serializer &s); + static void loadNotifierProc(bool postFlag); }; } // End of namespace tSage |