Example #1
0
void
Profile::Load(PolarSettings &settings)
{
  fixed degradation;
  if (Get(ProfilePolarDegradation, degradation) &&
      degradation >= fixed_half && degradation <= fixed_one)
    settings.SetDegradationFactor(degradation);
}
Example #2
0
void
Profile::Load(const ProfileMap &map, PolarSettings &settings)
{
  fixed degradation;
  if (map.Get(ProfileKeys::PolarDegradation, degradation) &&
      degradation >= fixed(0.5) && degradation <= fixed(1))
    settings.SetDegradationFactor(degradation);

  map.Get(ProfileKeys::AutoBugs, settings.auto_bugs);
}