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

@@ -99,7 +99,7 @@ int main() {
NanoManager::init();
NPCManager::init();
TransportManager::init();
BuddyManager::init(); // stubbed until we have database integration + lots of bug fixes
BuddyManager::init();
GroupManager::init();
Database::open();