aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/dialog.cpp')
-rw-r--r--engines/teenagent/dialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/teenagent/dialog.cpp b/engines/teenagent/dialog.cpp
index 17a2378fb5..2479da42a1 100644
--- a/engines/teenagent/dialog.cpp
+++ b/engines/teenagent/dialog.cpp
@@ -66,12 +66,12 @@ void Dialog::show(Scene *scene, uint16 addr, uint16 animation1, uint16 animation
//debug(0, "displaymessage %s", message.c_str());
if (color == color2) {
//pause animation in other slot
- if (animation1 != 0) {
+ {
SceneEvent e(SceneEvent::kPauseAnimation);
e.slot = 0x80 | slot1;
scene->push(e);
}
- if (animation2 != 0) {
+ {
SceneEvent e(SceneEvent::kPlayAnimation);
e.animation = animation2;
e.slot = 0x80 | slot2;
@@ -79,12 +79,12 @@ void Dialog::show(Scene *scene, uint16 addr, uint16 animation1, uint16 animation
}
} else if (color == color1) {
//pause animation in other slot
- if (animation2 != 0) {
+ {
SceneEvent e(SceneEvent::kPauseAnimation);
e.slot = 0x80 | slot2;
scene->push(e);
}
- if (animation1 != 0) {
+ {
SceneEvent e(SceneEvent::kPlayAnimation);
e.animation = animation1;
e.slot = 0x80 | slot1;