shared Team Options in scenarios

little fix with printf which weren't used anyway
This commit is contained in:
titison 2015-01-12 17:55:48 +01:00
parent 848b84f149
commit b3449e59be
1 changed files with 2 additions and 2 deletions

View File

@ -394,7 +394,7 @@ void Scenario::loadScenarioInfo(string file, ScenarioInfo *scenarioInfo, bool is
if(scenarioNode->hasChild("shared-team-units") == true) {
scenarioInfo->allowTeamUnitSharing=scenarioNode->getChild("shared-team-units")->getAttribute("value")->getBoolValue();
//printf("\nallowTeamUnitSharing is set to [%B]\n",scenarioInfo->allowTeamUnitSharing);
//printf("\nallowTeamUnitSharing is set to [%s]\n",scenarioInfo->allowTeamUnitSharing);
}
else {
scenarioInfo->allowTeamUnitSharing = false;
@ -402,7 +402,7 @@ void Scenario::loadScenarioInfo(string file, ScenarioInfo *scenarioInfo, bool is
if(scenarioNode->hasChild("shared-team-resources") == true) {
scenarioInfo->allowTeamResourceSharing=scenarioNode->getChild("shared-team-resources")->getAttribute("value")->getBoolValue();
//printf("\nallowTeamResourceSharing is set to [%B]\n",scenarioInfo->allowTeamResourceSharing);
//printf("\nallowTeamResourceSharing is set to [%s]\n",scenarioInfo->allowTeamResourceSharing);
}
else {
scenarioInfo->allowTeamResourceSharing = false;