small fix on number of unlocked cheevos message
The previous version was showing the number of **locked** cheevos.
This commit is contained in:
parent
3c07209a1a
commit
b4902e7df5
|
@ -2948,7 +2948,7 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
{
|
{
|
||||||
const cheevo_t* cheevo = cheevos_locals.core.cheevos;
|
const cheevo_t* cheevo = cheevos_locals.core.cheevos;
|
||||||
const cheevo_t* end = cheevo + cheevos_locals.core.count;
|
const cheevo_t* end = cheevo + cheevos_locals.core.count;
|
||||||
int number_of_unlocked = 0;
|
int number_of_unlocked = cheevos_locals.core.count;
|
||||||
int mode;
|
int mode;
|
||||||
char msg[256];
|
char msg[256];
|
||||||
|
|
||||||
|
@ -2959,7 +2959,7 @@ static int cheevos_iterate(coro_t* coro)
|
||||||
|
|
||||||
for(; cheevo < end; cheevo++)
|
for(; cheevo < end; cheevo++)
|
||||||
if(cheevo->active & mode)
|
if(cheevo->active & mode)
|
||||||
number_of_unlocked++;
|
number_of_unlocked--;
|
||||||
|
|
||||||
snprintf(msg, sizeof(msg), "You have %d of %d achievements unlocked.",
|
snprintf(msg, sizeof(msg), "You have %d of %d achievements unlocked.",
|
||||||
number_of_unlocked, cheevos_locals.core.count);
|
number_of_unlocked, cheevos_locals.core.count);
|
||||||
|
|
Loading…
Reference in New Issue