@@ -370,7 +370,7 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
370370 LfgRolesMap proposalRoles;
371371
372372 // Check for correct size
373- if (check.size () > MAXGROUPSIZE || check.empty ())
373+ if (check.size () > MAX_GROUP_SIZE || check.empty ())
374374 {
375375 TC_LOG_DEBUG (" lfg.queue.match.compatibility.check" , " Guids: ({}): Size wrong - Not compatibles" , GetDetailedMatchRoles (check));
376376 return LFG_INCOMPATIBLES_WRONG_GROUP_SIZE;
@@ -396,7 +396,7 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
396396 // Check if more than one LFG group and number of players joining
397397 uint8 numPlayers = 0 ;
398398 uint8 numLfgGroups = 0 ;
399- for (GuidList::const_iterator it = check.begin (); it != check.end () && numLfgGroups < 2 && numPlayers <= MAXGROUPSIZE ; ++it)
399+ for (GuidList::const_iterator it = check.begin (); it != check.end () && numLfgGroups < 2 && numPlayers <= MAX_GROUP_SIZE ; ++it)
400400 {
401401 ObjectGuid guid = *it;
402402 LfgQueueDataContainer::iterator itQueue = QueueDataStore.find (guid);
@@ -421,8 +421,8 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
421421 }
422422 }
423423
424- // Group with less that MAXGROUPSIZE members always compatible
425- if (!sLFGMgr ->IsSoloLFG () && numPlayers != MAXGROUPSIZE ) // solo lfg
424+ // Group with less that MAX_GROUP_SIZE members always compatible
425+ if (!sLFGMgr ->IsSoloLFG () && numPlayers != MAX_GROUP_SIZE ) // solo lfg
426426 {
427427 TC_LOG_DEBUG (" lfg.queue.match.compatibility.check" , " Guids: ({}) single group. Compatibles" , GetDetailedMatchRoles (check));
428428 LfgQueueDataContainer::iterator itQueue = QueueDataStore.find (check.front ());
@@ -443,7 +443,7 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
443443 return LFG_INCOMPATIBLES_MULTIPLE_LFG_GROUPS;
444444 }
445445
446- if (numPlayers > MAXGROUPSIZE )
446+ if (numPlayers > MAX_GROUP_SIZE )
447447 {
448448 TC_LOG_DEBUG (" lfg.queue.match.compatibility.check" , " Guids: ({}) Too many players ({})" , GetDetailedMatchRoles (check), numPlayers);
449449 SetCompatibles (strGuids, LFG_INCOMPATIBLES_TOO_MUCH_PLAYERS);
@@ -520,7 +520,7 @@ LfgCompatibility LFGQueue::CheckCompatibility(GuidList check)
520520 }
521521
522522 // Enough players?
523- if (!sLFGMgr ->IsSoloLFG () && numPlayers != MAXGROUPSIZE ) // solo lfg
523+ if (!sLFGMgr ->IsSoloLFG () && numPlayers != MAX_GROUP_SIZE ) // solo lfg
524524 {
525525 TC_LOG_DEBUG (" lfg.queue.match.compatibility.check" , " Guids: ({}) Compatibles but not enough players({})" , GetDetailedMatchRoles (check), numPlayers);
526526 LfgCompatibilityData data (LFG_COMPATIBLES_WITH_LESS_PLAYERS);
0 commit comments