Also save game when unlocking a stats trophy.

This commit is contained in:
Steve 2016-05-13 08:37:06 +01:00
parent ecd5c8df4a
commit b9b8f524b3
1 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,7 @@ void awardTrophy(char *id)
t->awardDate = time(NULL); t->awardDate = time(NULL);
t->notify = 1; t->notify = 1;
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Awarding trophy '%s'", id); SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Awarding trophy '%s'", t->id);
app.saveGame = 1; app.saveGame = 1;
} }
@ -400,6 +400,10 @@ void awardStatsTrophies(void)
t->awarded = 1; t->awarded = 1;
t->awardDate = time(NULL); t->awardDate = time(NULL);
t->notify = 1; t->notify = 1;
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Awarding trophy '%s'", t->id);
app.saveGame = 1;
} }
} }
} }