@@ -324,7 +324,7 @@ void update_overlay_timers()
324324void update_speech_and_messages ()
325325{
326326 bool is_voice_playing = false ;
327- if (play.speech_has_voice )
327+ if (play.speech_voice_blocking )
328328 {
329329 auto *ch = AudioChans::GetChannel (SCHAN_SPEECH);
330330 is_voice_playing = ch && ch->is_ready ();
@@ -333,7 +333,7 @@ void update_speech_and_messages()
333333 if (play.messagetime >=0 ) {
334334 play.messagetime --;
335335 // extend life of text if the voice hasn't finished yet
336- if (play.speech_has_voice && !play.speech_in_post_state ) {
336+ if (play.speech_voice_blocking && !play.speech_in_post_state ) {
337337 if ((is_voice_playing) && (play.fast_forward == 0 )) {
338338 if (play.messagetime <= 1 )
339339 play.messagetime = 1 ;
@@ -371,7 +371,7 @@ void update_speech_and_messages()
371371
372372bool has_voice_lipsync ()
373373{
374- return play.speech_has_voice && (curLipLine >= 0 );
374+ return play.speech_voice_blocking && (curLipLine >= 0 );
375375}
376376
377377int update_voice_lipsync (int frame)
@@ -453,13 +453,13 @@ void update_sierra_speech()
453453 // if play.close_mouth_speech_time = 0, this means animation should play till
454454 // the speech ends; but this should not work in voice mode, and also if the
455455 // speech is in the "post" state
456- (play.speech_has_voice || play.speech_in_post_state || play.close_mouth_speech_time > 0 ))
456+ (play.speech_voice_blocking || play.speech_in_post_state || play.close_mouth_speech_time > 0 ))
457457 { }
458458 else {
459459 // Close mouth at end of sentence: if speech has entered the "post" state,
460460 // or if this is a text only mode and close_mouth_speech_time is set
461461 if (play.speech_in_post_state ||
462- (!play.speech_has_voice &&
462+ (!play.speech_voice_blocking &&
463463 (play.messagetime < play.close_mouth_speech_time ) &&
464464 (play.close_mouth_speech_time > 0 ))) {
465465 facetalkframe = 0 ;
@@ -476,7 +476,7 @@ void update_sierra_speech()
476476 // normal non-lip-sync
477477 facetalkframe++;
478478 if ((facetalkframe >= views[facetalkview].loops [facetalkloop].numFrames ) ||
479- (!play.speech_has_voice && (play.messagetime < 1 ) && (play.close_mouth_speech_time > 0 ))) {
479+ (!play.speech_voice_blocking && (play.messagetime < 1 ) && (play.close_mouth_speech_time > 0 ))) {
480480
481481 if ((facetalkframe >= views[facetalkview].loops [facetalkloop].numFrames ) &&
482482 (views[facetalkview].loops [facetalkloop].RunNextLoop ()))
0 commit comments