Fix develop compile
This commit is contained in:
parent
032e08afef
commit
e1b419c83d
3 changed files with 9 additions and 9 deletions
|
|
@ -42,7 +42,8 @@
|
|||
#endif
|
||||
#include "i_net.h" // doomcom
|
||||
|
||||
//extern "C" consvar_t cv_forcebots;
|
||||
consvar_t cv_forcebots = CVAR_INIT ("kartforcebots", "Off", CV_NETVAR|CV_CHEAT, CV_OnOff, NULL);
|
||||
consvar_t cv_botcontrol = CVAR_INIT ("kartbotcontrol", "On", CV_NETVAR|CV_CHEAT, CV_OnOff, NULL);
|
||||
|
||||
/*--------------------------------------------------
|
||||
void K_SetNameForBot(UINT8 playerNum, UINT8 skinnum)
|
||||
|
|
@ -206,7 +207,7 @@ void K_UpdateMatchRaceBots(void)
|
|||
{
|
||||
difficulty = 0;
|
||||
}
|
||||
else if ((gametyperules & GTR_BOTS) == 0 /*&& !cv_forcebots.value*/)
|
||||
else if ((gametyperules & GTR_BOTS) == 0 && !cv_forcebots.value)
|
||||
{
|
||||
difficulty = 0;
|
||||
}
|
||||
|
|
@ -1313,10 +1314,8 @@ static void K_BuildBotTiccmdNormal(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
|
||||
// Defanging bots for testing.
|
||||
#ifdef DEVELOP
|
||||
if (!cv_botcontrol.value)
|
||||
return;
|
||||
#endif
|
||||
if (!cv_botcontrol.value)
|
||||
return;
|
||||
|
||||
// Actual gameplay behaviors below this block!
|
||||
const botcontroller_t *botController = K_GetBotController(player->mo);
|
||||
|
|
|
|||
|
|
@ -22,9 +22,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef DEVELOP
|
||||
extern consvar_t cv_botcontrol;
|
||||
#endif
|
||||
extern consvar_t cv_forcebots;
|
||||
extern consvar_t cv_botcontrol;
|
||||
|
||||
// Maximum value of botvars.difficulty
|
||||
#define MAXBOTDIFFICULTY (13)
|
||||
|
|
|
|||
|
|
@ -228,6 +228,8 @@ void K_RegisterKartStuff(void)
|
|||
CV_RegisterVar(&cv_kartspeedometer);
|
||||
CV_RegisterVar(&cv_kartvoices);
|
||||
CV_RegisterVar(&cv_kartbot);
|
||||
CV_RegisterVar(&cv_forcebots);
|
||||
CV_RegisterVar(&cv_botcontrol);
|
||||
CV_RegisterVar(&cv_karteliminatelast);
|
||||
CV_RegisterVar(&cv_kartusepwrlv);
|
||||
CV_RegisterVar(&cv_votetime);
|
||||
|
|
|
|||
Loading…
Reference in a new issue