From 907e04590435cdbdaf2f4d26af8cae9d0998626b Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Fri, 23 Jun 2023 01:10:06 -0500 Subject: [PATCH] some tweaks --- dGame/dComponents/VendorComponent.cpp | 2 +- dGame/dEntity/Entity.cpp | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dGame/dComponents/VendorComponent.cpp b/dGame/dComponents/VendorComponent.cpp index 492241c9..7645ee21 100644 --- a/dGame/dComponents/VendorComponent.cpp +++ b/dGame/dComponents/VendorComponent.cpp @@ -1,6 +1,6 @@ #include "VendorComponent.h" -#include +#include "BitStream.h" #include "Game.h" #include "dServer.h" diff --git a/dGame/dEntity/Entity.cpp b/dGame/dEntity/Entity.cpp index 2c734195..d26898fb 100644 --- a/dGame/dEntity/Entity.cpp +++ b/dGame/dEntity/Entity.cpp @@ -279,6 +279,9 @@ void Entity::Initialize() { break; case eReplicaComponentType::VENDOR: AddComponent(); + if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) { + AddComponent(); + } break; case eReplicaComponentType::INVENTORY: AddComponent(); @@ -409,6 +412,12 @@ void Entity::Initialize() { case eReplicaComponentType::BUILD_BORDER: AddComponent(); break; + case eReplicaComponentType::DONATION_VENDOR: + AddComponent(); + if (!HasComponent(eReplicaComponentType::PROXIMITY_MONITOR)) { + AddComponent(); + } + break; case eReplicaComponentType::GHOST: case eReplicaComponentType::SPAWN: case eReplicaComponentType::MODULAR_BUILD: @@ -469,9 +478,6 @@ void Entity::Initialize() { case eReplicaComponentType::USER_CONTROL: case eReplicaComponentType::IGNORE_LIST: case eReplicaComponentType::INTERACTION_MANAGER: - case eReplicaComponentType::DONATION_VENDOR: - AddComponent(); - break; case eReplicaComponentType::COMBAT_MEDIATOR: case eReplicaComponentType::ACHIEVEMENT_VENDOR: case eReplicaComponentType::GATE_RUSH_CONTROL: