Merge pull request #73612 from chutchinson/bug/73607-scene-tree-timer-negative-time-left
Clamp return value of SceneTreeTimer::get_time_left to 0.0
This commit is contained in:
commit
e349cd8b86
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 {
|
||||
return time_left;
|
||||
return MAX(time_left, 0.0);
|
||||
}
|
||||
|
||||
void SceneTreeTimer::set_process_always(bool p_process_always) {
|
||||
|
|
Loading…
Reference in a new issue