diff --git a/code/iof30interface.cpp b/code/iof30interface.cpp index 08dbe2d..7a9765f 100644 --- a/code/iof30interface.cpp +++ b/code/iof30interface.cpp @@ -3591,10 +3591,11 @@ void IOF30Interface::writeResult(xmlparser &xml, const oRunner &rPerson, const o xml.write("Status", formatStatus(status, r.getFinishTime()>0)); - int rg = r.getRogainingPoints(true, false); - if (rg > 0) { - xml.write("Score", "type", L"Score", itow(rg)); + // Is it a Rogaine class? + if (r.getClassRef(false)->isRogaining()) { + xml.write("Score", "type", L"Score", itow(r.getRogainingPoints(true, false))); xml.write("Score", "type", L"Penalty", itow(r.getRogainingReduction(true))); + xml.write("Score", "type", L"Gross", itow(r.getRogainingPointsGross(true))); } if ( (r.getTeam() && r.getClassRef(false)->getClassType() != oClassPatrol && !teamsAsIndividual && !qualFinal) || hasInputTime) { xml.startTag("OverallResult");