Skip to content

Commit

Permalink
TSAGE: R2R - Get rid of some magic values, fix an unnoticed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Feb 1, 2014
1 parent c50487a commit 6087df9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/tsage/ringworld2/ringworld2_scenes0.cpp
Expand Up @@ -1678,7 +1678,7 @@ void Scene180::signal() {
case 24:
case 26:
case 46:
setSceneDelay((R2_GLOBALS._speechSubtitles & 1) ? 1 : 18);
setSceneDelay((R2_GLOBALS._speechSubtitles & SPEECH_TEXT) ? 1 : 18);
break;

case 13:
Expand Down Expand Up @@ -4313,7 +4313,7 @@ void Scene325::signal() {
if (_soundCount)
--_soundCount;

if (!_soundCount || (R2_GLOBALS._speechSubtitles == 2)) {
if (!_soundCount || !(R2_GLOBALS._speechSubtitles & SPEECH_VOICE)) {
_soundIndex = 0;
R2_GLOBALS._playStream.stop();
} else {
Expand Down Expand Up @@ -4700,7 +4700,7 @@ void Scene325::setMessage(int resNum, int lineNum) {

R2_GLOBALS._sceneObjects->draw();

if ((_soundCount != 0) && (R2_GLOBALS._speechSubtitles != 2)) {
if ((_soundCount != 0) && (R2_GLOBALS._speechSubtitles & SPEECH_VOICE)) {
_sceneMode = 15;
R2_GLOBALS._playStream.play(_soundQueue[_soundIndex++], this);
}
Expand Down

0 comments on commit 6087df9

Please sign in to comment.