aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/state.cpp
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2018-11-16 15:14:34 +0100
committerJoseph-Eugene Winzer2019-02-06 09:42:11 +0100
commit21c9c885baddf198552c1468878ce32ed3f872aa (patch)
tree7e57e2bbdfffa29d18e203bb6eaf39854655785f /engines/supernova/state.cpp
parent641a4307f230152931adb49940c5c72cc839f0cb (diff)
downloadscummvm-rg350-21c9c885baddf198552c1468878ce32ed3f872aa.tar.gz
scummvm-rg350-21c9c885baddf198552c1468878ce32ed3f872aa.tar.bz2
scummvm-rg350-21c9c885baddf198552c1468878ce32ed3f872aa.zip
SUPERNOVA: Stops time and animations when reading the newspaper
After leaving the cell on Arsano there's a desk you need to attach your watch to and set the alarm to attract the guard in the next room. If the alarm goes off while reading the newspaper, the game glitches out with wrong palette colors, scene, ..
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r--engines/supernova/state.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index fa53b5e7c2..92a8dfe16a 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -2004,6 +2004,9 @@ bool GameManager::genericInteract(Action verb, Object &obj1, Object &obj2) {
takeObject(*_rooms[ROGER]->getObject(8));
}
} else if ((verb == ACTION_LOOK) && (obj1._id == NEWSPAPER)) {
+ animationOff();
+ saveTime();
+
_vm->renderMessage(kStringGenericInteract_10);
waitOnInput(_messageDuration);
_vm->removeMessage();
@@ -2017,6 +2020,9 @@ bool GameManager::genericInteract(Action verb, Object &obj1, Object &obj2) {
_vm->renderRoom(*_currentRoom);
roomBrightness();
_vm->renderMessage(kStringGenericInteract_12);
+
+ loadTime();
+ animationOn();
} else if ((verb == ACTION_LOOK) && (obj1._id == KEYCARD2)) {
_vm->renderMessage(obj1._description);
obj1._description = kStringKeycard2Description2;