online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Status.gd')
| -rw-r--r-- | ui/Status.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/Status.gd b/ui/Status.gd index 6a68c79..351f523 100644 --- a/ui/Status.gd +++ b/ui/Status.gd @@ -5,5 +5,6 @@ class_name StatusLabel func set_text(newtext: String, time := 7) -> void: print("set to ", newtext) text = newtext - yield(get_tree().create_timer(time), "timeout") - text = "" + if time != 0: + yield(get_tree().create_timer(time), "timeout") + text = "" |