diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp index f8d748c2995..3fb0d1e2560 100644 --- a/scene/main/timer.cpp +++ b/scene/main/timer.cpp @@ -50,8 +50,7 @@ void Timer::_notification(int p_what) { if (time_left < 0) { if (!one_shot) - //time_left=wait_time+time_left; - time_left = wait_time; + time_left += wait_time; else stop(); @@ -66,7 +65,7 @@ void Timer::_notification(int p_what) { if (time_left < 0) { if (!one_shot) - time_left = wait_time + time_left; + time_left += wait_time; else stop(); emit_signal("timeout");