mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-19 19:10:35 +00:00
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:
@@ -36,5 +36,6 @@ namespace BuddyManager {
|
||||
// helper methods
|
||||
|
||||
// Name checks
|
||||
int getAvailableBuddySlot(Player* plr);
|
||||
bool NameCheck(char16_t reqName[], char16_t resName[], int sizeOfReq, int sizeOfRes); // checks if the request and requested player's names match
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user