Commit fe7a49cb authored by Alexis Lebis's avatar Alexis Lebis

fix > 0

parent 34033c70
......@@ -19,6 +19,7 @@ class DecayEngine
if(t == 0)
return 0;
return (exp(t / 1.25) + 5)/100;
//return (double)t/10;
}
};
......
......@@ -446,7 +446,7 @@ int CSDVP::CSDVP_COUNTER = 0;
lastTF = pb.coursesCatalogue().at(i).lastTimeFrame();
maxLevel = lastTF * hLevelR / nbTF;
maxLevel--; // Logically, prerequisite can only be according to comp of lower HL
if(maxLevel > 0) // then this means we are dealing with at least a HL 1, so only HL below can serve as prereq
if(maxLevel >= 0) // then this means we are dealing with at least a HL 1, so only HL below can serve as prereq
{
HLComp = CompetencyDistribution::upToHLevel(pb, maxLevel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment