Skip to content

Commit 0a8335b

Browse files
committed
More scenario bug fixes.
1 parent b102388 commit 0a8335b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/java/oxy/bascenario/screens/ScenarioScreen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public void pollEvents(boolean bypass) {
8383

8484
final long duration = peek.waitForDialogue() ? this.sinceDialogue : this.sincePoll;
8585
if (peek.waitForDialogue() && (this.busyDialogue || this.busyOptions)) {
86+
this.sinceDialogue = 0;
8687
break;
8788
}
8889

@@ -125,6 +126,8 @@ public void pollEvents(boolean bypass) {
125126
boolean busyOptions = this.busyOptions && !(this.optionsRenderer.getScale().isRunning() && this.optionsRenderer.getScale().getTarget() == 1);
126127
if (!busyDialogue && !busyOptions) {
127128
this.sinceDialogue += timeDelta;
129+
} else {
130+
this.sinceDialogue = 0;
128131
}
129132

130133
this.sinceRender = TimeUtils.currentTimeMillis();

0 commit comments

Comments
 (0)