Skip to content

Commit

Permalink
Fix autoadvance with delay = 0 (dialogic-godot#2192)
Browse files Browse the repository at this point in the history
- should fix dialogic-godot#2190
  • Loading branch information
Jowan-Spooner authored Apr 18, 2024
1 parent f3b0604 commit ff06706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Modules/Text/auto_advance.gd
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ func start() -> void:
var parsed_text: String = DialogicUtil.autoload().current_state_info['text_parsed']
var delay := _calculate_autoadvance_delay(parsed_text)

await DialogicUtil.autoload().get_tree().process_frame
if delay == 0:
_on_autoadvance_timer_timeout()
else:
await DialogicUtil.autoload().get_tree().process_frame
autoadvance_timer.start(delay)


Expand Down

0 comments on commit ff06706

Please sign in to comment.