small fix on number of unlocked cheevos message

The previous version was showing the number of **locked** cheevos.
This commit is contained in:
meleu 2017-07-03 17:16:39 -03:00 committed by GitHub
parent 3c07209a1a
commit b4902e7df5

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);