diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 89140f3c6..378bf9fb6 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -391,8 +391,8 @@ static CV_PossibleValue_t kartdebugitem_cons_t[] = consvar_t cv_kartdebugitem = {"kartdebugitem", "0", CV_NETVAR|CV_CHEAT|CV_NOSHOWHELP, kartdebugitem_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; static CV_PossibleValue_t kartdebugamount_cons_t[] = {{1, "MIN"}, {255, "MAX"}, {0, NULL}}; consvar_t cv_kartdebugamount = {"kartdebugamount", "1", CV_NETVAR|CV_CHEAT|CV_NOSHOWHELP, kartdebugamount_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; -consvar_t cv_kartdebug_giveitem = { - "kartdebug_giveitem", +consvar_t cv_kartallowgiveitem = { + "kartallowgiveitem", /* :mhm: */ #ifdef DEVELOP "Yes", @@ -5328,7 +5328,7 @@ static void Got_GiveItemcmd(UINT8 **cp, INT32 playernum) amt = READUINT8 (*cp); if ( - ( netgame && ! cv_kartdebug_giveitem.value ) || + ( netgame && ! cv_kartallowgiveitem.value ) || ( item < KITEM_SAD || item >= NUMKARTITEMS ) ) { @@ -5517,7 +5517,7 @@ static void Command_Archivetest_f(void) /** Give yourself an, optional quantity or one of, an item. * - * \sa cv_kartdebug_giveitem + * \sa cv_kartallowgiveitem */ static void Command_KartGiveItem_f(void) { @@ -5532,7 +5532,7 @@ static void Command_KartGiveItem_f(void) int i; /* Allow always in local games. */ - if (! netgame || cv_kartdebug_giveitem.value) + if (! netgame || cv_kartallowgiveitem.value) { ac = COM_Argc(); if (ac < 2) diff --git a/src/d_netcmd.h b/src/d_netcmd.h index 1e84c67bb..e6be9296d 100644 --- a/src/d_netcmd.h +++ b/src/d_netcmd.h @@ -125,7 +125,7 @@ extern consvar_t cv_kartusepwrlv; extern consvar_t cv_votetime; -extern consvar_t cv_kartdebugitem, cv_kartdebugamount, cv_kartdebug_giveitem, cv_kartdebugshrink, cv_kartdebugdistribution, cv_kartdebughuddrop; +extern consvar_t cv_kartdebugitem, cv_kartdebugamount, cv_kartallowgiveitem, cv_kartdebugshrink, cv_kartdebugdistribution, cv_kartdebughuddrop; extern consvar_t cv_kartdebugcheckpoint, cv_kartdebugnodes, cv_kartdebugcolorize; extern consvar_t cv_itemfinder; diff --git a/src/k_kart.c b/src/k_kart.c index 6eb4b9f9d..a7e94dcbc 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -585,7 +585,7 @@ void K_RegisterKartStuff(void) CV_RegisterVar(&cv_kartdebugitem); CV_RegisterVar(&cv_kartdebugamount); CV_RegisterVar(&cv_kartdebugshrink); - CV_RegisterVar(&cv_kartdebug_giveitem); + CV_RegisterVar(&cv_kartallowgiveitem); CV_RegisterVar(&cv_kartdebugdistribution); CV_RegisterVar(&cv_kartdebughuddrop);