Harden melee sync authority
Some checks failed
build / Linux asan (push) Has been cancelled
build / Linux release (push) Has been cancelled
build / FreeBSD build (push) Has been cancelled

This commit is contained in:
server
2026-04-16 11:39:07 +02:00
parent 763d7a99b7
commit eea1875d62
4 changed files with 114 additions and 2 deletions

View File

@@ -829,6 +829,10 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider
bool SetSyncOwner(LPCHARACTER ch, bool bRemoveFromList = true);
bool IsSyncOwner(LPCHARACTER ch) const;
LPCHARACTER GetSyncOwner() const { return m_pkChrSyncOwner; }
void LockSyncOwner(DWORD dwDurationMs);
bool IsSyncOwnerLocked() const;
bool IsSyncOwnerLockedFor(LPCHARACTER ch) const;
bool WarpSet(long x, long y, long lRealMapIndex = 0);
void SetWarpLocation(long lMapIndex, long x, long y);
@@ -852,6 +856,7 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider
float m_fSyncTime;
LPCHARACTER m_pkChrSyncOwner;
DWORD m_dwSyncOwnerLockExpire;
CHARACTER_LIST m_kLst_pkChrSyncOwned; // 내가 SyncOwner인 자들
PIXEL_POSITION m_posDest;