mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
Make use of MINVAL and MAXVAL consistent in COM_Help_f.
This commit is contained in:
parent
69d43435f5
commit
effb506120
1 changed files with 10 additions and 6 deletions
|
|
@ -740,16 +740,20 @@ static void COM_Help_f(void)
|
||||||
CONS_Printf(" On or Off (Yes or No, 1 or 0)\n");
|
CONS_Printf(" On or Off (Yes or No, 1 or 0)\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!stricmp(cvar->PossibleValue[0].strvalue, "MIN") && !stricmp(cvar->PossibleValue[1].strvalue, "MAX"))
|
#define MINVAL 0
|
||||||
|
#define MAXVAL 1
|
||||||
|
if (!stricmp(cvar->PossibleValue[MINVAL].strvalue, "MIN"))
|
||||||
{
|
{
|
||||||
if (floatmode)
|
if (floatmode)
|
||||||
CONS_Printf(" range from %f to %f\n", FIXED_TO_FLOAT(cvar->PossibleValue[0].value),
|
CONS_Printf(" range from %f to %f\n", FIXED_TO_FLOAT(cvar->PossibleValue[MINVAL].value),
|
||||||
FIXED_TO_FLOAT(cvar->PossibleValue[1].value));
|
FIXED_TO_FLOAT(cvar->PossibleValue[MAXVAL].value));
|
||||||
else
|
else
|
||||||
CONS_Printf(" range from %d to %d\n", cvar->PossibleValue[0].value,
|
CONS_Printf(" range from %d to %d\n", cvar->PossibleValue[MINVAL].value,
|
||||||
cvar->PossibleValue[1].value);
|
cvar->PossibleValue[MAXVAL].value);
|
||||||
i = 2;
|
i = MAXVAL+1;
|
||||||
}
|
}
|
||||||
|
#undef MINVAL
|
||||||
|
#undef MAXVAL
|
||||||
|
|
||||||
//CONS_Printf(M_GetText(" possible value : %s\n"), cvar->name);
|
//CONS_Printf(M_GetText(" possible value : %s\n"), cvar->name);
|
||||||
while (cvar->PossibleValue[i].strvalue)
|
while (cvar->PossibleValue[i].strvalue)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue