mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
parent
171021145d
commit
0f5455230c
127 changed files with 2853 additions and 2601 deletions
|
|
@ -43,6 +43,7 @@ void Timer::_notification(int p_what) {
|
|||
autostart = false;
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_INTERNAL_PROCESS: {
|
||||
if (!processing || timer_process_callback == TIMER_PROCESS_PHYSICS || !is_processing_internal()) {
|
||||
return;
|
||||
|
|
@ -58,8 +59,8 @@ void Timer::_notification(int p_what) {
|
|||
|
||||
emit_signal(SNAME("timeout"));
|
||||
}
|
||||
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {
|
||||
if (!processing || timer_process_callback == TIMER_PROCESS_IDLE || !is_physics_processing_internal()) {
|
||||
return;
|
||||
|
|
@ -74,7 +75,6 @@ void Timer::_notification(int p_what) {
|
|||
}
|
||||
emit_signal(SNAME("timeout"));
|
||||
}
|
||||
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue