Skip to content

Commit

Permalink
update (module): core aligntment
Browse files Browse the repository at this point in the history
  • Loading branch information
acidmanifesto committed Oct 16, 2023
1 parent 3ea2538 commit 7e73057
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/server/game/DungeonFinding/LFGQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
}
}

// Group with less that MAXGROUPSIZE members always compatible
if (!sLFGMgr->IsSoloLFG() && numPlayers != MAXGROUPSIZE) //solo lfg
// Group with less that MAX_GROUP_SIZE members always compatible
if (!sLFGMgr->IsSoloLFG() && numPlayers != MAX_GROUP_SIZE) //solo lfg
{
TC_LOG_DEBUG("lfg.queue.match.compatibility.check", "Guids: ({}) single group. Compatibles", GetDetailedMatchRoles(check));
LfgQueueDataContainer::iterator itQueue = QueueDataStore.find(check.front());
Expand Down Expand Up @@ -520,7 +520,7 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
}

// Enough players?
if (!sLFGMgr->IsSoloLFG() && numPlayers != MAXGROUPSIZE) //solo lfg
if (!sLFGMgr->IsSoloLFG() && numPlayers != MAX_GROUP_SIZE) //solo lfg
{
TC_LOG_DEBUG("lfg.queue.match.compatibility.check", "Guids: ({}) Compatibles but not enough players({})", GetDetailedMatchRoles(check), numPlayers);
LfgCompatibilityData data(LFG_COMPATIBLES_WITH_LESS_PLAYERS);
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Groups/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const*
// check for min / max count
uint32 memberscount = GetMembersCount();

if (memberscount > bgEntry->MaxGroupSize) // no MinPlayerCount for battlegrounds
if (memberscount > bgEntry->MAX_GROUP_SIZE) // no MinPlayerCount for battlegrounds
return ERR_BATTLEGROUND_NONE; // ERR_GROUP_JOIN_BATTLEGROUND_TOO_MANY handled on client side

// get a player as reference, to compare other players' stats to (arena team id, queue id based on level, etc.)
Expand Down
9 changes: 4 additions & 5 deletions src/server/game/Groups/Group.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ class WorldSession;

struct MapEntry;

#define MAX_GROUP_SIZE 5
#define MAX_RAID_SIZE 40
#define MAX_RAID_SUBGROUPS MAX_RAID_SIZE / MAX_GROUP_SIZE

#define TARGET_ICONS_COUNT 8
#define MAX_GROUP_SIZE 5
#define MAX_RAID_SIZE 40
#define MAX_RAID_SUBGROUPS MAX_RAID_SIZE/MAX_GROUP_SIZE
#define TARGET_ICONS_COUNT 8

enum RollVote
{
Expand Down

0 comments on commit 7e73057

Please sign in to comment.