diff options
author | Matthew Stewart | 2018-07-11 02:48:15 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-09 08:37:30 +0200 |
commit | 793a5b602006f7cfbf967de83647f67f161ce70a (patch) | |
tree | d089fe9989a0b75e1c321aab393c38ea3741ee14 /engines/startrek/room.cpp | |
parent | 160bd9ad510d335649acc45e42ca923b0382277f (diff) | |
download | scummvm-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.cpp | 8 |
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); } } |