added a missing "return" on offerinteruptonphase: parsing.

This commit is contained in:
omegablast2002@yahoo.com
2011-09-03 16:16:38 +00:00
parent 354f9788cc
commit 7fac24945d
+6 -6
View File
@@ -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));