shared Team Options in scenarios
little fix with printf which weren't used anyway
This commit is contained in:
parent
848b84f149
commit
b3449e59be
|
@ -394,7 +394,7 @@ void Scenario::loadScenarioInfo(string file, ScenarioInfo *scenarioInfo, bool is
|
||||||
|
|
||||||
if(scenarioNode->hasChild("shared-team-units") == true) {
|
if(scenarioNode->hasChild("shared-team-units") == true) {
|
||||||
scenarioInfo->allowTeamUnitSharing=scenarioNode->getChild("shared-team-units")->getAttribute("value")->getBoolValue();
|
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 {
|
else {
|
||||||
scenarioInfo->allowTeamUnitSharing = false;
|
scenarioInfo->allowTeamUnitSharing = false;
|
||||||
|
@ -402,7 +402,7 @@ void Scenario::loadScenarioInfo(string file, ScenarioInfo *scenarioInfo, bool is
|
||||||
|
|
||||||
if(scenarioNode->hasChild("shared-team-resources") == true) {
|
if(scenarioNode->hasChild("shared-team-resources") == true) {
|
||||||
scenarioInfo->allowTeamResourceSharing=scenarioNode->getChild("shared-team-resources")->getAttribute("value")->getBoolValue();
|
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 {
|
else {
|
||||||
scenarioInfo->allowTeamResourceSharing = false;
|
scenarioInfo->allowTeamResourceSharing = false;
|
||||||
|
|
Loading…
Reference in New Issue