chore(formatting): removed braces from one-line if-statement

main
Sara 2024-12-25 17:51:23 +01:00
parent d7d1ce0314
commit 2d7555fb6d
1 changed files with 1 additions and 2 deletions

View File

@ -21,9 +21,8 @@ void Enemy::_ready() {
timer->connect("timeout", callable_mp(this, &Enemy::update));
this->target_rotation = this->get_rotation().y;
this->drone_sound = this->get_node<gd::AudioStreamPlayer3D>("%DroneSound");
if(this->has_node("%DebugLabel")) {
if(this->has_node("%DebugLabel"))
this->debug_label = this->get_node<gd::Label3D>("%DebugLabel");
}
this->agent->connect("velocity_computed", callable_mp(this, &Enemy::_on_velocity_calculated));
}