You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
@@ -108,10 +108,15 @@ void MultiplayerSynchronizer::_notification(int p_what) {
|
||||
if (root_path.is_empty()) {
|
||||
return;
|
||||
}
|
||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||
_start();
|
||||
} else if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
_stop();
|
||||
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
_start();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
_stop();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user