Merge pull request #150 from Arkshine/add-reset_menu

Allow show_menu native to send empty text + add reset_menu stock (bug 6244)
This commit is contained in:
Vincent Herbet
2014-10-25 12:00:08 +02:00
2 changed files with 14 additions and 1 deletions

View File

@ -57,7 +57,7 @@ void UTIL_ShowMenu(edict_t* pEdict, int slots, int time, char *menu, int mlen)
if (!gmsgShowMenu)
return; // some games don't support ShowMenu (Firearms)
while (*n)
do
{
a = mlen;
if (a > 175) a = 175;
@ -74,6 +74,7 @@ void UTIL_ShowMenu(edict_t* pEdict, int slots, int time, char *menu, int mlen)
*n = c;
menu = n;
}
while (*n);
}
/* warning - don't pass here const string */