aboutsummaryrefslogtreecommitdiff
path: root/src/cr.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-09-04 01:40:34 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-09-04 01:40:34 -0300
commit13819597ef078096086f03e6faf93f161949799f (patch)
tree6c4411a3412c53c0d5baf40f687abeeddacd41cd /src/cr.hh
parent81aa93cce828eee17fcbd0720f93c5fb2d08a325 (diff)
downloadgame-13819597ef078096086f03e6faf93f161949799f.tar.gz
game-13819597ef078096086f03e6faf93f161949799f.zip
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.
Diffstat (limited to 'src/cr.hh')
-rw-r--r--src/cr.hh1
1 files changed, 1 insertions, 0 deletions
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);