From bf53b7789a3de5d7f7e82b30c87b59544b900c1f Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 1 May 2015 11:44:02 -0300 Subject: -fix timer behavior described, closes #1455 --- scene/main/timer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene') diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp index e59fd6fb75..2e3e7db0ad 100644 --- a/scene/main/timer.cpp +++ b/scene/main/timer.cpp @@ -46,6 +46,8 @@ void Timer::_notification(int p_what) { } break; case NOTIFICATION_PROCESS: { + if (!is_processing()) + return; time_left -= get_process_delta_time(); if (time_left<0) { -- cgit v1.2.3