mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
format codebase
This commit is contained in:
@@ -9,12 +9,10 @@
|
||||
#include "Item.h"
|
||||
#include "PropertyManagementComponent.h"
|
||||
|
||||
BuildBorderComponent::BuildBorderComponent(Entity* parent) : Component(parent)
|
||||
{
|
||||
BuildBorderComponent::BuildBorderComponent(Entity* parent) : Component(parent) {
|
||||
}
|
||||
|
||||
BuildBorderComponent::~BuildBorderComponent()
|
||||
{
|
||||
BuildBorderComponent::~BuildBorderComponent() {
|
||||
}
|
||||
|
||||
void BuildBorderComponent::OnUse(Entity* originator) {
|
||||
@@ -23,8 +21,7 @@ void BuildBorderComponent::OnUse(Entity* originator) {
|
||||
|
||||
auto buildArea = m_Parent->GetObjectID();
|
||||
|
||||
if (!entities.empty())
|
||||
{
|
||||
if (!entities.empty()) {
|
||||
buildArea = entities[0]->GetObjectID();
|
||||
|
||||
Game::logger->Log("BuildBorderComponent", "Using PropertyPlaque");
|
||||
@@ -62,8 +59,7 @@ void BuildBorderComponent::OnUse(Entity* originator) {
|
||||
NiPoint3::ZERO,
|
||||
0
|
||||
);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GameMessages::SendStartArrangingWithItem(originator, originator->GetSystemAddress(), true, buildArea, originator->GetPosition());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user