mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 05:51:58 +00:00
Rename kartdebug_giveitem to kartallowgiveitem
This commit is contained in:
parent
833c8e2bed
commit
392aec38f8
3 changed files with 7 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue