Also save game when unlocking a stats trophy.
This commit is contained in:
parent
ecd5c8df4a
commit
b9b8f524b3
|
@ -217,7 +217,7 @@ void awardTrophy(char *id)
|
|||
t->awardDate = time(NULL);
|
||||
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;
|
||||
}
|
||||
|
@ -400,6 +400,10 @@ void awardStatsTrophies(void)
|
|||
t->awarded = 1;
|
||||
t->awardDate = time(NULL);
|
||||
t->notify = 1;
|
||||
|
||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Awarding trophy '%s'", t->id);
|
||||
|
||||
app.saveGame = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue