void CP_ReadCampaignData (const campaign_t *campaign) { const char *type, *name, *text; /* stage two parsing */ FS_NextScriptHeader(NULL, NULL, NULL); text = NULL; Com_DPrintf(DEBUG_CLIENT, "Second stage parsing started...\n"); while ((type = FS_NextScriptHeader("ufos/*.ufo", &name, &text)) != NULL) CP_ParseScriptCampaignRelated(campaign, type, name, &text); }
void CP_ReadCampaignData (const campaign_t *campaign) { const char *type, *name, *text; /* stage two parsing */ FS_NextScriptHeader(NULL, NULL, NULL); text = NULL; Com_DPrintf(DEBUG_CLIENT, "Second stage parsing started...\n"); while ((type = FS_NextScriptHeader("ufos/*.ufo", &name, &text)) != NULL) CP_ParseScriptCampaignRelated(campaign, type, name, &text); /* initialise date */ ccs.date = campaign->date; /* get day */ while (ccs.date.sec > SECONDS_PER_DAY) { ccs.date.sec -= SECONDS_PER_DAY; ccs.date.day++; } }