1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

extracted base logger class to vstd

This commit is contained in:
AlexVinS
2016-08-12 15:51:14 +03:00
parent efee250e49
commit 599f4cfb55
9 changed files with 103 additions and 54 deletions

View File

@@ -78,14 +78,14 @@ const PlayerState * CGameInfoCallback::getPlayer(PlayerColor color, bool verbose
else
{
if (verbose)
vstd::logErrorFormat(logGlobal, "Cannot access player %d info!", color);
vstd::logError(logGlobal, "Cannot access player %d info!", color);
return nullptr;
}
}
else
{
if (verbose)
vstd::logErrorFormat(logGlobal, "Cannot find player %d info!", color);
vstd::logError(logGlobal, "Cannot find player %d info!", color);
return nullptr;
}
}
@@ -842,7 +842,7 @@ const TeamState * CGameInfoCallback::getTeam( TeamID teamID ) const
}
else
{
vstd::logErrorFormat(logGlobal, "Cannot find info for team %d", teamID);
vstd::logError(logGlobal, "Cannot find info for team %d", teamID);
return nullptr;
}
}