From 2d7555fb6d1552bcd17723d7fbac9b865360a246 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Dec 2024 17:51:23 +0100 Subject: [PATCH] chore(formatting): removed braces from one-line if-statement --- src/enemy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/enemy.cpp b/src/enemy.cpp index fe6c9c4..52ffd34 100644 --- a/src/enemy.cpp +++ b/src/enemy.cpp @@ -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("%DroneSound"); - if(this->has_node("%DebugLabel")) { + if(this->has_node("%DebugLabel")) this->debug_label = this->get_node("%DebugLabel"); - } this->agent->connect("velocity_computed", callable_mp(this, &Enemy::_on_velocity_calculated)); }