You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
previous value of time_left is added to wait_time before assigning to time_left
This commit is contained in:
@@ -66,8 +66,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;
|
||||||
time_left = wait_time;
|
|
||||||
else
|
else
|
||||||
stop();
|
stop();
|
||||||
emit_signal("timeout");
|
emit_signal("timeout");
|
||||||
|
|||||||
Reference in New Issue
Block a user