1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Clamp minimum value of time_left to 0.0

This commit is contained in:
Chris Hutchinson
2023-02-19 23:09:38 -05:00
committed by Yuri Sizov
parent 055ee1276f
commit 97712b3f50

View File

@@ -78,7 +78,7 @@ void SceneTreeTimer::set_time_left(double p_time) {
}
double SceneTreeTimer::get_time_left() const {
return time_left;
return MAX(time_left, 0.0);
}
void SceneTreeTimer::set_process_always(bool p_process_always) {