Fix "longest journey" achievement breaking due to movement glitches.
This commit is contained in:
parent
b7cbe75503
commit
adaf35eeb0
3 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue