mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 22:47:25 +00:00
use lwoobjid for ghost candidate
This commit is contained in:
parent
e1dc847e1d
commit
7ad5a3a890
@ -549,7 +549,7 @@ void EntityManager::CheckGhosting(Entity* entity) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity* EntityManager::GetGhostCandidate(int32_t id) {
|
Entity* EntityManager::GetGhostCandidate(LWOOBJID id) const {
|
||||||
for (auto* entity : m_EntitiesToGhost) {
|
for (auto* entity : m_EntitiesToGhost) {
|
||||||
if (entity->GetObjectID() == id) {
|
if (entity->GetObjectID() == id) {
|
||||||
return entity;
|
return entity;
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
void UpdateGhosting();
|
void UpdateGhosting();
|
||||||
void UpdateGhosting(Entity* player);
|
void UpdateGhosting(Entity* player);
|
||||||
void CheckGhosting(Entity* entity);
|
void CheckGhosting(Entity* entity);
|
||||||
Entity* GetGhostCandidate(int32_t id);
|
Entity* GetGhostCandidate(LWOOBJID id) const;
|
||||||
bool GetGhostingEnabled() const;
|
bool GetGhostingEnabled() const;
|
||||||
|
|
||||||
void ScheduleForKill(Entity* entity);
|
void ScheduleForKill(Entity* entity);
|
||||||
|
Loading…
Reference in New Issue
Block a user