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

@ -578,3 +578,15 @@ stock has_all_flags(id, const flags[])
new FlagsNumber=read_flags(flags);
return ((get_user_flags(id) & FlagsNumber)==FlagsNumber);
}
/**
* Resets a client's menu.
*
* @note This is just a wrapper around show_menu for the sake of readability.
*
* @param index Client to reset menu to, use 0 to reset to all clients
*/
stock reset_menu(index)
{
show_menu(index, 0, "", 0);
}