Buddy code cleanup

- Get rid of buddyCnt, self-nullptr checks, and redundant playermap loops in chat handlers
- Add helper function to find available buddy slot
- Reorganize a bit
This commit is contained in:
Gent
2020-11-07 23:11:56 -05:00
parent 262dca7dd6
commit 803f1a246a
5 changed files with 108 additions and 130 deletions

View File

@@ -71,6 +71,5 @@ struct Player {
bool notify;
int buddyCnt;
int64_t buddyIDs[50];
};