diff options
author | nokoe <nokoe@mailbox.org> | 2024-07-25 12:06:17 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-07-25 12:06:17 +0200 |
commit | b6e6fa487903037c4175d7e94509eb75b1ad250d (patch) | |
tree | 774b2eda1add431b27f7f8457a1d0780737a33e0 | |
parent | a088a76e00195d6f01b9a974f4db3233052014fc (diff) | |
download | hurrycurry-b6e6fa487903037c4175d7e94509eb75b1ad250d.tar hurrycurry-b6e6fa487903037c4175d7e94509eb75b1ad250d.tar.bz2 hurrycurry-b6e6fa487903037c4175d7e94509eb75b1ad250d.tar.zst |
game timer: only set time if greater than 0
-rw-r--r-- | client/menu/overlay.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/menu/overlay.gd b/client/menu/overlay.gd index e80a00f9..3a7bfd8b 100644 --- a/client/menu/overlay.gd +++ b/client/menu/overlay.gd @@ -45,8 +45,9 @@ func update(failed_: int, completed_: int, points_: int, time: float): points = points_ timer.stop() - timer.wait_time = time - timer.start() + if time > 0.: + timer.wait_time = time + timer.start() func set_ingame(_state: bool, lobby: bool): if lobby: |