aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/room.cpp
diff options
context:
space:
mode:
authorMatthew Stewart2018-07-11 02:48:15 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commit793a5b602006f7cfbf967de83647f67f161ce70a (patch)
treed089fe9989a0b75e1c321aab393c38ea3741ee14 /engines/startrek/room.cpp
parent160bd9ad510d335649acc45e42ca923b0382277f (diff)
downloadscummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.tar.gz
scummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.tar.bz2
scummvm-rg350-793a5b602006f7cfbf967de83647f67f161ce70a.zip
STARTREK: TRIAL5
Diffstat (limited to 'engines/startrek/room.cpp')
-rw-r--r--engines/startrek/room.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp
index ebd3074e5f..4ec703f69d 100644
--- a/engines/startrek/room.cpp
+++ b/engines/startrek/room.cpp
@@ -480,7 +480,9 @@ void Room::spockScan(int direction, TextRef text, bool changeDirection) {
loadActorAnim2(OBJECT_SPOCK, anim, -1, -1, 0);
playSoundEffectIndex(SND_TRICORDER);
- showText(TX_SPEAKER_SPOCK, text);
+
+ if (text != -1)
+ showText(TX_SPEAKER_SPOCK, text);
}
void Room::mccoyScan(int direction, TextRef text, bool changeDirection) {
@@ -493,7 +495,9 @@ void Room::mccoyScan(int direction, TextRef text, bool changeDirection) {
loadActorAnim2(OBJECT_MCCOY, anim, -1, -1, 0);
playSoundEffectIndex(SND_TRICORDER);
- showText(TX_SPEAKER_MCCOY, text);
+
+ if (text != -1)
+ showText(TX_SPEAKER_MCCOY, text);
}
}