mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +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
ba9818c8ca
commit
d9b1d33d89
2 changed files with 13 additions and 3 deletions
|
@ -992,6 +992,9 @@ static consvar_t *CV_FindNetVar(UINT16 netid)
|
|||
if (cvar->netid == netid)
|
||||
return cvar;
|
||||
|
||||
if (netid == 44542) // ouch this hack
|
||||
return &cv_karteliminatelast;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1089,9 +1092,15 @@ const char *CV_CompleteVar(char *partial, INT32 skips)
|
|||
|
||||
// check variables
|
||||
for (cvar = consvar_vars; cvar; cvar = cvar->next)
|
||||
if (!strncmp(partial, cvar->name, len))
|
||||
if (!skips--)
|
||||
return cvar->name;
|
||||
{
|
||||
if (cvar->flags & CV_NOSHOWHELP)
|
||||
continue;
|
||||
if (strncmp(partial, cvar->name, len))
|
||||
continue;
|
||||
if (skips--)
|
||||
continue;
|
||||
return cvar->name;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -7885,6 +7885,7 @@ static void M_HandleConnectIP(INT32 choice)
|
|||
|
||||
case KEY_ENTER:
|
||||
S_StartSound(NULL,sfx_menu1); // Tails
|
||||
currentMenu->lastOn = itemOn;
|
||||
M_ConnectIP(1);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue