mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Clamp minimum value of time_left to 0.0
This commit is contained in:
committed by
Yuri Sizov
parent
055ee1276f
commit
97712b3f50
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user