fix speedrun timer credits crash
This commit is contained in:
parent
8252ff66b8
commit
f73a7ca01e
1 changed files with 7 additions and 6 deletions
|
@ -20,9 +20,10 @@ func _process(delta: float) -> void:
|
|||
if visible:
|
||||
time_counter.text = Game.format_time(time)
|
||||
|
||||
var map = Game.get_map()
|
||||
if is_instance_valid(map):
|
||||
if (Game.has_collection_bonus() && Game.time <= map.target_time_100) or (!Game.has_collection_bonus() && Game.time <= map.target_time_any):
|
||||
time_counter.modulate = bonus_color
|
||||
return
|
||||
time_counter.modulate = Color.white
|
||||
if timer_running:
|
||||
var map = Game.get_map()
|
||||
if is_instance_valid(map):
|
||||
if (Game.has_collection_bonus() && Game.time <= map.target_time_100) or (!Game.has_collection_bonus() && Game.time <= map.target_time_any):
|
||||
time_counter.modulate = bonus_color
|
||||
return
|
||||
time_counter.modulate = Color.white
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue