mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Let toggle command multiple choice mode work on cvars lacking PossibleValue array
This commit is contained in:
parent
8742a55077
commit
a6e87ae82c
1 changed files with 3 additions and 2 deletions
|
|
@ -1080,9 +1080,10 @@ static void COM_Toggle_f(void)
|
|||
for (i = 2; i < COM_Argc() - 1; ++i)
|
||||
{
|
||||
const char *str = COM_Argv(i);
|
||||
INT32 val;
|
||||
INT32 val = 0;
|
||||
|
||||
if (CV_CompleteValue(cvar, &str, &val))
|
||||
if (!cvar->PossibleValue ||
|
||||
CV_CompleteValue(cvar, &str, &val))
|
||||
{
|
||||
if (str ? !stricmp(cvar->string, str)
|
||||
: cvar->value == val)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue