added a missing "return" on offerinteruptonphase: parsing.
This commit is contained in:
@@ -185,9 +185,9 @@ void RulesState::parsePlayerState(int playerId, string s)
|
|||||||
playerData[playerId].phaseRing = s.substr(limiter + 1);
|
playerData[playerId].phaseRing = s.substr(limiter + 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (areaS.compare("offerinterruptonphase") == 0)
|
else if (areaS.compare("offerinterruptonphase") == 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < Constants::NB_MTG_PHASES; i++)
|
for (int i = 0; i < Constants::NB_MTG_PHASES; i++)
|
||||||
{
|
{
|
||||||
string phaseStr = Constants::MTGPhaseCodeNames[i];
|
string phaseStr = Constants::MTGPhaseCodeNames[i];
|
||||||
if (s.find(phaseStr) != string::npos)
|
if (s.find(phaseStr) != string::npos)
|
||||||
@@ -195,9 +195,9 @@ void RulesState::parsePlayerState(int playerId, string s)
|
|||||||
playerData[playerId].offerInterruptOnPhase = PhaseRing::phaseStrToInt(phaseStr);
|
playerData[playerId].offerInterruptOnPhase = PhaseRing::phaseStrToInt(phaseStr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
return;
|
||||||
}
|
}
|
||||||
else if (areaS.compare("auto") == 0)
|
else if (areaS.compare("auto") == 0)
|
||||||
{
|
{
|
||||||
playerData[playerId].extraRules.push_back(s.substr(limiter + 1));
|
playerData[playerId].extraRules.push_back(s.substr(limiter + 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user