1
This commit is contained in:
parent
d94b9a64d5
commit
be781c14c5
@ -472,10 +472,23 @@ bool MatchTeam::CanCombine(MatchTeam* b)
|
|||||||
if (!b->combined_team_hash_.empty()) {
|
if (!b->combined_team_hash_.empty()) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
a8::XPrintf("CanCombine 8\n", {});
|
a8::XPrintf("CanCombine 8\n", {});
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!HaveEmptySlot()) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
a8::XPrintf("CanCombine 32\n", {});
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!b->HaveEmptySlot()) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
a8::XPrintf("CanCombine 33\n", {});
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if 1
|
#if 1
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if (GetPredictMemberNum() + b->GetPredictMemberNum() > MAX_TEAM_NUM) {
|
if (GetPredictMemberNum() + b->GetPredictMemberNum() > MAX_TEAM_NUM) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -6,17 +6,17 @@
|
|||||||
|
|
||||||
enum MatchTeamPhase_e
|
enum MatchTeamPhase_e
|
||||||
{
|
{
|
||||||
kMatchCombining = 1,
|
kMatchCombining = 1,
|
||||||
kMatchChoose = 2,
|
kMatchChoose = 2,
|
||||||
kMatchLock = 3,
|
kMatchLock = 3,
|
||||||
kMatchStartGame = 4,
|
kMatchStartGame = 4,
|
||||||
kMatchWaitStart = 5
|
kMatchWaitStart = 5
|
||||||
};
|
};
|
||||||
|
|
||||||
enum MatchTeamMember_e
|
enum MatchTeamMember_e
|
||||||
{
|
{
|
||||||
kMatchReadying = 0,
|
kMatchReadying = 0,
|
||||||
kMatchPrepare = 1,
|
kMatchPrepare = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace cs
|
namespace cs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user