X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcampaign.qc;h=816f71bf9d683445d12195f54ec3b0c8bb4ae681;hp=300d01a7a56607b031a28e5e0d419c2dbadd42ea;hb=162a91bc68d7b8e58c92cb0af873871129e386a9;hpb=cb78214cf1252fa80df3490c0cd3d41bae72bbb8 diff --git a/qcsrc/server/campaign.qc b/qcsrc/server/campaign.qc index 300d01a7a5..816f71bf9d 100644 --- a/qcsrc/server/campaign.qc +++ b/qcsrc/server/campaign.qc @@ -64,7 +64,7 @@ void CampaignPreInit() { float baseskill; string title; - if(cvar("sv_cheats")) + if(autocvar_sv_cheats) { CampaignBailout("JOLLY CHEATS AHAHAHAHAHAHAH))"); return; @@ -101,7 +101,7 @@ void CampaignPreInit() // copy sv_gravity cvar, as the engine needs it too (sorry, this will mess // with the menu a little still...) - cvar_set_normal("sv_gravity", cvar_string("sv_gravity")); + cvar_set_normal("sv_gravity", ftos(cvar("sv_gravity"))); if(Campaign_Invalid()) return; @@ -188,7 +188,7 @@ void CampaignPreIntermission() if(won == 1 && lost == 0 && checkrules_equality == 0 && cheatcount_total == 0) { - if(cvar("timelimit") != 0 && time > cvar("timelimit") * 60) // checks if the timelimit has expired. + if(cvar("timelimit") != 0 && cvar("fraglimit") != 0 && time > cvar("timelimit") * 60) // checks if the timelimit has expired. { campaign_won = 0; bprint("Time's up! The current level has been LOST.\n"); @@ -196,12 +196,12 @@ void CampaignPreIntermission() } else { - campaign_won = 1; - bprint("The current level has been WON.\n"); - // sound! + campaign_won = 1; + bprint("The current level has been WON.\n"); + // sound! } } - else if(cvar("timelimit") != 0 && time > cvar("timelimit") * 60) + else if(cvar("timelimit") != 0 && time > cvar("timelimit") * 60) { campaign_won = 0; bprint("Time's up! The current level has been LOST.\n");