@@ -190,8 +190,11 @@ void Window_Message::StartMessageProcessing(PendingMessage pm) {
190190
191191 DebugLog (" {}: MSG TEXT \n {}" , text);
192192
193- disallow_next_message = true ;
194- msg_was_pushed_this_frame = true ;
193+ auto open_frames = (!IsVisible () && !Game_Battle::IsBattleRunning ()) ? message_animation_frames : 0 ;
194+ SetOpenAnimation (open_frames);
195+ DebugLog (" {}: MSG START OPEN {}" , open_frames);
196+
197+ InsertNewPage ();
195198}
196199
197200void Window_Message::OnFinishPage () {
@@ -416,7 +419,7 @@ void Window_Message::Update() {
416419 if (IsClosing ()) { DebugLog (" {}: MSG CLOSING" ); }
417420
418421 close_started_this_frame = false ;
419- disallow_next_message = false ;
422+ close_finished_this_frame = false ;
420423
421424 const bool was_closing = IsClosing ();
422425
@@ -425,22 +428,10 @@ void Window_Message::Update() {
425428 gold_window->Update ();
426429
427430 if (was_closing && !IsClosing ()) {
428- disallow_next_message = true ;
431+ close_finished_this_frame = true ;
429432 }
430433
431434 if (!IsVisible ()) {
432- if (msg_was_pushed_this_frame) {
433- msg_was_pushed_this_frame = false ;
434- disallow_next_message = true ;
435- return ;
436- }
437- if (!text.empty () && text_index == text.data ()) {
438- auto open_frames = (!IsVisible () && !Game_Battle::IsBattleRunning ()) ? message_animation_frames : 0 ;
439- SetOpenAnimation (open_frames);
440- DebugLog (" {}: MSG START OPEN {}" , open_frames);
441-
442- InsertNewPage ();
443- }
444435 return ;
445436 }
446437
0 commit comments