Count number of trophies during loading, to prevent amount from accumulating.

This commit is contained in:
Steve 2018-03-31 18:41:22 +01:00
parent ff9f3c5f61
commit 14dbe2b39c
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,6 @@ void initTrophies(void)
alertRect.h = 90;
alertRect.y = 10;
numTrophies = 0;
awarded = 0;
sparkleAngle = 0;
@ -357,6 +355,8 @@ void loadTrophyData(void)
text = readFile(filename);
root = cJSON_Parse(text);
numTrophies = 0;
for (node = root->child ; node != NULL ; node = node->next)
{