Skip to content

Commit

Permalink
ok whatever allow saving vacuous goals for now and fix stupid error i…
Browse files Browse the repository at this point in the history
…n checkvacuity
  • Loading branch information
MinaciousGrace committed May 3, 2017
1 parent 56fcda3 commit 5c5d834
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2185,21 +2185,10 @@ XNode* Profile::SaveEttScoresCreateNode() const
// maybe these should be contained separately like the favorites? not sure, there are advantages to both
// also this lol, don't write any vacuous goals when saving -mina
if (goalmap.count(ck)) {
bool anygoalstosave = false;
FOREACH_CONST(ScoreGoal, goalmap.at(ck), sg) {
if (sg->vacuous) {
anygoalstosave = true;
break;
}
}

if (anygoalstosave) {
XNode* pGoals = new XNode("GoalTracker");
FOREACH_CONST(ScoreGoal, goalmap.at(ck), sg)
if (!sg->vacuous)
pGoals->AppendChild(sg->CreateNode());
pChartKey->AppendChild(pGoals);
}
XNode* pGoals = new XNode("GoalTracker");
FOREACH_CONST(ScoreGoal, goalmap.at(ck), sg)
pGoals->AppendChild(sg->CreateNode());
pChartKey->AppendChild(pGoals);
}

pNode->AppendChild(pChartKey);
Expand Down Expand Up @@ -2428,7 +2417,8 @@ void ScoreGoal::CheckVacuity() {

if (pb && pb->GetWifeScore() >= percent)
vacuous = true;
else vacuous = false;
else
vacuous = false;
}

// aaa too lazy to write comparators rn -mina
Expand Down

0 comments on commit 5c5d834

Please sign in to comment.