diff options
author | Paul Gilbert | 2011-08-03 19:44:16 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-03 19:44:16 +1000 |
commit | b9fe3c151fe2a02b596b6366b296ea67023dae94 (patch) | |
tree | 249c9b4ea2f6fec1988ed30a5bc50688e4be07b1 /engines | |
parent | 04139ae1b5489b3b8ab97001f3d8c24a18c3502b (diff) | |
download | scummvm-rg350-b9fe3c151fe2a02b596b6366b296ea67023dae94.tar.gz scummvm-rg350-b9fe3c151fe2a02b596b6366b296ea67023dae94.tar.bz2 scummvm-rg350-b9fe3c151fe2a02b596b6366b296ea67023dae94.zip |
TSAGE: Bugfix to correctly display cursor after loading a savegame if appropriate
Diffstat (limited to 'engines')
-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 |