Fix "longest journey" achievement breaking due to movement glitches.

This commit is contained in:
Mari the Deer 2023-10-10 17:25:58 +02:00
commit adaf35eeb0
3 changed files with 6 additions and 2 deletions

View file

@ -67,6 +67,8 @@ extend class SWWMUtility
if ( developer >= 2 ) Console.Printf("AchievementProgress: achievement '"..pvar.."' not found");
return;
}
if ( pval == "NaN" ) // this can happen, yup
pval = "0";
hnd.achievementprogress.Insert(pvar,String.Format("%g",pval.ToDouble()+inc));
}
// for bitfields