Skip to content

Commit

Permalink
Merge pull request playgameservices#1258 from JohnyGQD/master
Browse files Browse the repository at this point in the history
Fix for "Stuck incremental achievements because of lost precision playgameservices#1209"
  • Loading branch information
claywilkinson authored Aug 9, 2016
2 parents 4b63c90 + ff82cc5 commit 332f35e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ public void ReportProgress(string achievementID, double progress, Action<bool> c
" is less than or equal to 1. You might be trying to use values in the range of [0,1], while values are expected to be within the range [0,100]. If you are using the latter, you can safely ignore this message.");
}

int targetSteps = (int)((progress / 100) * totalSteps);
int targetSteps = (int) Math.Round((progress / 100f) * totalSteps);
int numSteps = targetSteps - curSteps;
GooglePlayGames.OurUtils.Logger.d("Target steps: " +
targetSteps + ", cur steps:" + curSteps);
Expand Down

0 comments on commit 332f35e

Please sign in to comment.