core/MenuStyle_Radio.cpp
changeset 970 b47becc0083d
parent 877 898c39fbfde9
child 1005 b15b5682d181
     1.1 --- a/core/MenuStyle_Radio.cpp	Sun Jun 17 07:32:31 2007 +0000
     1.2 +++ b/core/MenuStyle_Radio.cpp	Sun Jun 17 18:06:03 2007 +0000
     1.3 @@ -17,6 +17,9 @@
     1.4  #include "UserMessages.h"
     1.5  #include "GameConfigs.h"
     1.6  #include "PlayerManager.h"
     1.7 +#if defined MENU_DEBUG
     1.8 +#include "Logger.h"
     1.9 +#endif
    1.10  
    1.11  extern const char *g_RadioNumTable[];
    1.12  CRadioStyle g_RadioMenuStyle;
    1.13 @@ -120,6 +123,11 @@
    1.14  	for (unsigned int i=0; i<g_last_client_count; i++)
    1.15  	{
    1.16  		int client = g_last_clients[i];
    1.17 +#if defined MENU_DEBUG
    1.18 +		g_Logger.LogMessage("[SM_MENU] CRadioStyle got ShowMenu (client %d) (bInMenu %d)",
    1.19 +			client,
    1.20 +			m_players[client].bInExternMenu);
    1.21 +#endif
    1.22  		if (m_players[client].bInMenu)
    1.23  		{
    1.24  			_CancelClientMenu(client, true);
    1.25 @@ -366,6 +374,12 @@
    1.26  
    1.27  bool CRadioMenu::Display(int client, unsigned int time)
    1.28  {
    1.29 +#if defined MENU_DEBUG
    1.30 +	g_Logger.LogMessage("[SM_MENU] CRadioMenu::Display(%p) (client %d) (time %d)",
    1.31 +		this,
    1.32 +		client,
    1.33 +		time);
    1.34 +#endif
    1.35  	if (m_bCancelling)
    1.36  	{
    1.37  		return false;
    1.38 @@ -376,6 +390,12 @@
    1.39  
    1.40  void CRadioMenu::VoteDisplay(int client, unsigned int maxTime)
    1.41  {
    1.42 +#if defined MENU_DEBUG
    1.43 +	g_Logger.LogMessage("[SM_MENU] CRadioMenu::VoteDisplay(%p) (client %d) (time %d)",
    1.44 +		this,
    1.45 +		client,
    1.46 +		maxTime);
    1.47 +#endif
    1.48  	if (m_bCancelling)
    1.49  	{
    1.50  		return;