Skip to content

Commit

Permalink
only run Choices endings on first page
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jan 19, 2024
1 parent da31cdb commit bf03b4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pets-lib/src/dialogue/dbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ impl DialogBox {
self.do_draw();

if self.is_on_or_past_last_page() {
self.run_ix_ending();
let ending = self.current_ix_ending().unwrap().clone();
if let DialogueEnding::Choices(choices) = ending {
self.recreate_choice_labels(&choices);
self.tween_choices_wave(true);
self.awaiting_choice = true;
}
}
}

Expand Down

0 comments on commit bf03b4d

Please sign in to comment.