Fix not working MENU_DEBUG (#1506)

Replace g_Logger to logger for MENU_DEBUG
This commit is contained in:
Vladimir
2021-06-21 12:11:35 +01:00
committed by GitHub
parent 8075ce8371
commit 267eb90da5
2 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -35,7 +35,7 @@
#include <IGameConfigs.h>
#include "PlayerManager.h"
#if defined MENU_DEBUG
#include "Logger.h"
#include <bridge/include/ILogger.h>
#endif
#include "logic_bridge.h"
@@ -199,7 +199,7 @@ void CRadioStyle::OnUserMessageSent(int msg_id)
{
int client = g_last_clients[i];
#if defined MENU_DEBUG
g_Logger.LogMessage("[SM_MENU] CRadioStyle got ShowMenu (client %d) (bInMenu %d)",
logger->LogMessage("[SM_MENU] CRadioStyle got ShowMenu (client %d) (bInMenu %d)",
client,
m_players[client].bInExternMenu);
#endif
@@ -578,7 +578,7 @@ bool CRadioMenu::DisplayAtItem(int client,
IMenuHandler *alt_handler)
{
#if defined MENU_DEBUG
g_Logger.LogMessage("[SM_MENU] CRadioMenu::Display(%p) (client %d) (time %d)",
logger->LogMessage("[SM_MENU] CRadioMenu::Display(%p) (client %d) (time %d)",
this,
client,
time);