- fixed amb1302 - GetClientMenu() could return 1 for stale external menus

- fixed a debug assertion from StartMessage() + ShowMenu

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401844
This commit is contained in:
David Anderson 2008-01-07 22:36:39 +00:00
parent c033f5415a
commit 63592212d5

View File

@ -118,6 +118,7 @@ bool CRadioStyle::OnClientCommand(int client, const char *cmdname, const CComman
{
if (!m_players[client].bInMenu)
{
m_players[client].bInExternMenu = false;
return false;
}
@ -136,7 +137,7 @@ static int g_last_clients[256];
void CRadioStyle::OnUserMessage(int msg_id, bf_write *bf, IRecipientFilter *pFilter)
{
int count = pFilter->GetRecipientCount();
bf_read br(bf->GetBasePointer(), 2);
bf_read br(bf->GetBasePointer(), 3);
br.ReadWord();
int c = br.ReadChar();