From 13819597ef078096086f03e6faf93f161949799f Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 4 Sep 2025 01:40:34 -0300 Subject: fix small bug with experience distribution Before checking if players are in the same party, we need to check if they're in any party at all. I made a small wrapper `TPlayer::InPartyWith` to help prevent this mistake again. --- src/cr.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cr.hh') diff --git a/src/cr.hh b/src/cr.hh index f7cbb2e..18cfe5e 100644 --- a/src/cr.hh +++ b/src/cr.hh @@ -867,6 +867,7 @@ struct TPlayer: TCreature { void ClearPlayerkillingMarks(void); int GetPlayerkillingMark(TPlayer *Observer); uint32 GetPartyLeader(bool CheckFormer); + bool InPartyWith(TPlayer *Other, bool CheckFormer); void JoinParty(uint32 LeaderID); void LeaveParty(void); int GetPartyMark(TPlayer *Observer); -- cgit v1.2.3