mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
parent
4989cc3617
commit
5b5a825c7f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user