Merge pull request #5145 from meleu/patch-2

small fix on number of unlocked cheevos message
This commit is contained in:
Twinaphex 2017-07-04 00:35:47 +02:00 committed by GitHub
commit 0dc0cc5bf0

View File

@ -2948,7 +2948,7 @@ static int cheevos_iterate(coro_t* coro)
{
const cheevo_t* cheevo = cheevos_locals.core.cheevos;
const cheevo_t* end = cheevo + cheevos_locals.core.count;
int number_of_unlocked = 0;
int number_of_unlocked = cheevos_locals.core.count;
int mode;
char msg[256];
@ -2959,7 +2959,7 @@ static int cheevos_iterate(coro_t* coro)
for(; cheevo < end; cheevo++)
if(cheevo->active & mode)
number_of_unlocked++;
number_of_unlocked--;
snprintf(msg, sizeof(msg), "You have %d of %d achievements unlocked.",
number_of_unlocked, cheevos_locals.core.count);