Clamp minimum value of time_left to 0.0
This commit is contained in:
parent
055ee1276f
commit
97712b3f50
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ void SceneTreeTimer::set_time_left(double p_time) {
|
||||||
}
|
}
|
||||||
|
|
||||||
double SceneTreeTimer::get_time_left() const {
|
double SceneTreeTimer::get_time_left() const {
|
||||||
return time_left;
|
return MAX(time_left, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneTreeTimer::set_process_always(bool p_process_always) {
|
void SceneTreeTimer::set_process_always(bool p_process_always) {
|
||||||
|
|
Loading…
Reference in a new issue