mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Make logger automatically put a newline (#675)
at the end of the line remove all the newlines in log calls
This commit is contained in:
@@ -12,13 +12,13 @@ void TauntBehavior::Handle(BehaviorContext* context, RakNet::BitStream* bitStrea
|
||||
|
||||
if (target == nullptr)
|
||||
{
|
||||
Game::logger->Log("TauntBehavior", "Failed to find target (%llu)!\n", branch.target);
|
||||
Game::logger->Log("TauntBehavior", "Failed to find target (%llu)!", branch.target);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
auto* combatComponent = target->GetComponent<BaseCombatAIComponent>();
|
||||
|
||||
|
||||
if (combatComponent != nullptr)
|
||||
{
|
||||
combatComponent->Taunt(context->originator, m_threatToAdd);
|
||||
@@ -31,13 +31,13 @@ void TauntBehavior::Calculate(BehaviorContext* context, RakNet::BitStream* bitSt
|
||||
|
||||
if (target == nullptr)
|
||||
{
|
||||
Game::logger->Log("TauntBehavior", "Failed to find target (%llu)!\n", branch.target);
|
||||
Game::logger->Log("TauntBehavior", "Failed to find target (%llu)!", branch.target);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
auto* combatComponent = target->GetComponent<BaseCombatAIComponent>();
|
||||
|
||||
|
||||
if (combatComponent != nullptr)
|
||||
{
|
||||
combatComponent->Taunt(context->originator, m_threatToAdd);
|
||||
|
Reference in New Issue
Block a user