Allow show_menu native to send empty text and add reset_menu stock (bug 6244)

This commit is contained in:
Arkshine
2014-10-24 20:10:10 +02:00
parent d8fc093fd8
commit d0ab27092c
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 */