diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-09-04 01:40:34 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-09-04 01:40:34 -0300 |
| commit | 13819597ef078096086f03e6faf93f161949799f (patch) | |
| tree | 6c4411a3412c53c0d5baf40f687abeeddacd41cd /src/cr.hh | |
| parent | 81aa93cce828eee17fcbd0720f93c5fb2d08a325 (diff) | |
| download | game-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.hh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
