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

This commit is contained in:
Arkshine committed 2014-10-24 20:36:38 +02:00
1 parent d8fc093fd8
commit d0ab27092c
2 files changed
+14 -1

No files matched your search

+12
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);
}