Disabling trophies for now. Will activate in v0.7 or later.

This commit is contained in:
Steve 2016-04-04 11:40:13 +01:00
parent 5e1220b9a4
commit 0eaeaba386
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,7 @@ extern long lookup(char *name);
extern Entity *spawnFighter(char *name, int x, int y, int side);
extern int isAcceptControl(void);
extern void resetAcceptControls(void);
extern void awardTrophy(char *id);
extern App app;
extern Battle battle;

View File

@ -138,6 +138,7 @@ Trophy *getTrophy(char *id)
static void loadTrophyData(char *filename)
{
/*
cJSON *root, *node;
char *text;
Trophy *t, *tail;
@ -160,7 +161,7 @@ static void loadTrophyData(char *filename)
t->value = lookup(cJSON_GetObjectItem(node, "value")->valuestring);
t->hidden = getJSONValue(node, "hidden", 0);
/* can't use the getJSONValue here, as it could lead to false positives */
// can't use the getJSONValue here, as it could lead to false positives
if (cJSON_GetObjectItem(node, "stat"))
{
t->stat = lookup(cJSON_GetObjectItem(node, "stat")->valuestring);
@ -173,6 +174,7 @@ static void loadTrophyData(char *filename)
cJSON_Delete(root);
free(text);
*/
}
void awardStatsTrophies(void)