mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Bugfixes:
* Use CV_NOSHOWHELP as an obstacle for CV_CompleteVar (so the hidden variables don't show up and ruin our party or anything). * Hack around the karteliminatelast thing so we don't have to hex-edit the netids, and can release with current assets (but a different executable, of course, to get the credits). * Fix M_HandleConnectIP not saving your current position on the menu if you use it while it's empty.
This commit is contained in:
parent
3462133c5a
commit
b6f000948e
2 changed files with 13 additions and 3 deletions
|
|
@ -992,6 +992,9 @@ static consvar_t *CV_FindNetVar(UINT16 netid)
|
||||||
if (cvar->netid == netid)
|
if (cvar->netid == netid)
|
||||||
return cvar;
|
return cvar;
|
||||||
|
|
||||||
|
if (netid == 44542) // ouch this hack
|
||||||
|
return &cv_karteliminatelast;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1089,9 +1092,15 @@ const char *CV_CompleteVar(char *partial, INT32 skips)
|
||||||
|
|
||||||
// check variables
|
// check variables
|
||||||
for (cvar = consvar_vars; cvar; cvar = cvar->next)
|
for (cvar = consvar_vars; cvar; cvar = cvar->next)
|
||||||
if (!strncmp(partial, cvar->name, len))
|
{
|
||||||
if (!skips--)
|
if (cvar->flags & CV_NOSHOWHELP)
|
||||||
return cvar->name;
|
continue;
|
||||||
|
if (strncmp(partial, cvar->name, len))
|
||||||
|
continue;
|
||||||
|
if (skips--)
|
||||||
|
continue;
|
||||||
|
return cvar->name;
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7885,6 +7885,7 @@ static void M_HandleConnectIP(INT32 choice)
|
||||||
|
|
||||||
case KEY_ENTER:
|
case KEY_ENTER:
|
||||||
S_StartSound(NULL,sfx_menu1); // Tails
|
S_StartSound(NULL,sfx_menu1); // Tails
|
||||||
|
currentMenu->lastOn = itemOn;
|
||||||
M_ConnectIP(1);
|
M_ConnectIP(1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue