X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcampaign_common.qh;h=088aefea09a0479c2061e483491923090653df60;hp=3f494a4639b723a310a26682d7d743e05971eaa6;hb=HEAD;hpb=ea48961feb50159e05ef56f38b7fd0ebc15cc64e diff --git a/qcsrc/common/campaign_common.qh b/qcsrc/common/campaign_common.qh index 3f494a4639..8f70c51cfa 100644 --- a/qcsrc/common/campaign_common.qh +++ b/qcsrc/common/campaign_common.qh @@ -1,5 +1,4 @@ -#ifndef CAMPAIGN_COMMON_H -#define CAMPAIGN_COMMON_H +#pragma once #ifndef CAMPAIGN_MAX_ENTRIES #define CAMPAIGN_MAX_ENTRIES 64 @@ -12,11 +11,13 @@ string campaign_gametype[CAMPAIGN_MAX_ENTRIES]; string campaign_mapname[CAMPAIGN_MAX_ENTRIES]; float campaign_bots[CAMPAIGN_MAX_ENTRIES]; float campaign_botskill[CAMPAIGN_MAX_ENTRIES]; -float campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]; -float campaign_timelimit[CAMPAIGN_MAX_ENTRIES]; +string campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]; +string campaign_timelimit[CAMPAIGN_MAX_ENTRIES]; string campaign_mutators[CAMPAIGN_MAX_ENTRIES]; +#ifndef SVQC string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES]; string campaign_longdesc[CAMPAIGN_MAX_ENTRIES]; +#endif string campaign_title; // filled upon loading // load the campaign file, but use the given offset and limit the number of @@ -30,5 +31,4 @@ void CampaignFile_Unload(); // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth // level) using localcmd() -void CampaignSetup(float n); -#endif +void CampaignSetup(int n);