mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 15:37:20 +00:00
isPlayer changes
Changed isPlayer to check for whether the entity has a character instead of checking system address of entity.
This commit is contained in:
parent
e85cf466d4
commit
2e61839d93
@ -1739,7 +1739,7 @@ void Entity::CancelAllTimers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Entity::IsPlayer() const {
|
bool Entity::IsPlayer() const {
|
||||||
return m_TemplateID == 1 && GetSystemAddress() != UNASSIGNED_SYSTEM_ADDRESS;
|
return m_TemplateID == 1 && GetCharacter() != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entity::TriggerEvent(std::string eventID, Entity* optionalTarget) {
|
void Entity::TriggerEvent(std::string eventID, Entity* optionalTarget) {
|
||||||
|
Loading…
Reference in New Issue
Block a user