Checks for training, boss, and outpost missions.

This commit is contained in:
Steve 2018-02-04 16:18:17 +00:00
parent 800f26055f
commit c3ca4a39e2
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,10 @@ void loadWorld(char *filename)
loadObjectives(cJSON_GetObjectItem(root, "objectives"));
world.isTrainingMission = strcmp(world.id, "beachApproach") == 0;
world.isBossMission = strncmp(world.id, "boss", 4) == 0;
world.isOutpostMission = strncmp(world.id, "outpost", 7) == 0;
cJSON_Delete(root);
free(text);