X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcampaign_common.qh;h=3f494a4639b723a310a26682d7d743e05971eaa6;hb=92c61bba87835a1bfd152c4cbb40764647a83656;hp=f6e240a6faf5bd4411a1919fc9badf34ddf56e04;hpb=244e29d98a3bd774f0428e90f046004c4e367380;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/campaign_common.qh b/qcsrc/common/campaign_common.qh index f6e240a6f..3f494a463 100644 --- a/qcsrc/common/campaign_common.qh +++ b/qcsrc/common/campaign_common.qh @@ -1,10 +1,13 @@ +#ifndef CAMPAIGN_COMMON_H +#define CAMPAIGN_COMMON_H + #ifndef CAMPAIGN_MAX_ENTRIES #define CAMPAIGN_MAX_ENTRIES 64 #endif // each i-th array element corresponds to the list entry campaign_offset+i -float campaign_entries; -float campaign_offset; +int campaign_entries; +int campaign_offset; string campaign_gametype[CAMPAIGN_MAX_ENTRIES]; string campaign_mapname[CAMPAIGN_MAX_ENTRIES]; float campaign_bots[CAMPAIGN_MAX_ENTRIES]; @@ -28,3 +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