Fixer looping timer accumulation in _process

Follow-up to #8251.
This commit is contained in:
Rémi Verschelde 2017-04-05 08:22:41 +02:00
parent 4989cc3617
commit 5b5a825c7f

View file

@ -50,8 +50,7 @@ void Timer::_notification(int p_what) {
if (time_left < 0) { if (time_left < 0) {
if (!one_shot) if (!one_shot)
//time_left=wait_time+time_left; time_left += wait_time;
time_left = wait_time;
else else
stop(); stop();
@ -66,7 +65,7 @@ void Timer::_notification(int p_what) {
if (time_left < 0) { if (time_left < 0) {
if (!one_shot) if (!one_shot)
time_left = wait_time + time_left; time_left += wait_time;
else else
stop(); stop();
emit_signal("timeout"); emit_signal("timeout");