previous value of time_left is added to wait_time before assigning to time_left

(cherry picked from commit ea4fbee8f2)
This commit is contained in:
Nikhil Shagrithaya 2017-04-04 00:37:42 +05:30 committed by Rémi Verschelde
parent a67400aee7
commit 323041a476

View File

@ -66,8 +66,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 + time_left;
else
stop();
emit_signal("timeout");