mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
fix(Core/Misc): Correct some fmt logs (#21106)
This commit is contained in:
@@ -3516,20 +3516,20 @@ void ObjectMgr::LoadVehicleSeatAddon()
|
|||||||
|
|
||||||
if (!sVehicleSeatStore.LookupEntry(seatID))
|
if (!sVehicleSeatStore.LookupEntry(seatID))
|
||||||
{
|
{
|
||||||
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: %u does not exist in VehicleSeat.dbc. Skipping entry.", seatID);
|
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: {} does not exist in VehicleSeat.dbc. Skipping entry.", seatID);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sanitizing values
|
// Sanitizing values
|
||||||
if (orientation > float(M_PI * 2))
|
if (orientation > float(M_PI * 2))
|
||||||
{
|
{
|
||||||
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: %u is using invalid angle offset value (%f). Set Value to 0.", seatID, orientation);
|
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: {} is using invalid angle offset value ({}). Set Value to 0.", seatID, orientation);
|
||||||
orientation = 0.0f;
|
orientation = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitParam >= AsUnderlyingType(VehicleExitParameters::VehicleExitParamMax))
|
if (exitParam >= AsUnderlyingType(VehicleExitParameters::VehicleExitParamMax))
|
||||||
{
|
{
|
||||||
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: %u is using invalid exit parameter value (%u). Setting to 0 (none).", seatID, exitParam);
|
LOG_ERROR("sql.sql", "Table `vehicle_seat_addon`: SeatID: {} is using invalid exit parameter value ({}). Setting to 0 (none).", seatID, exitParam);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3538,7 +3538,7 @@ void ObjectMgr::LoadVehicleSeatAddon()
|
|||||||
++count;
|
++count;
|
||||||
} while (result->NextRow());
|
} while (result->NextRow());
|
||||||
|
|
||||||
LOG_INFO("server.loading", ">> Loaded %u Vehicle Seat Addon entries in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
LOG_INFO("server.loading", ">> Loaded {} Vehicle Seat Addon entries in {} ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectMgr::LoadPetLevelInfo()
|
void ObjectMgr::LoadPetLevelInfo()
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ void MotdMgr::LoadLocalizedMotds(uint32 realmId) {
|
|||||||
|
|
||||||
if (!baseResult)
|
if (!baseResult)
|
||||||
{
|
{
|
||||||
LOG_ERROR("server.loading", "No base MOTD found for realm %u. Localized MOTDs will not be loaded.", realmId);
|
LOG_ERROR("server.loading", "No base MOTD found for realm {}. Localized MOTDs will not be loaded.", realmId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1274,7 +1274,7 @@ public:
|
|||||||
|
|
||||||
if (!sObjectMgr->SetCreatureLinkedRespawn(creature->GetSpawnId(), linkguid))
|
if (!sObjectMgr->SetCreatureLinkedRespawn(creature->GetSpawnId(), linkguid))
|
||||||
{
|
{
|
||||||
handler->SendErrorMessage("Selected creature can't link with guid '%u'", linkguid);
|
handler->SendErrorMessage("Selected creature can't link with guid '{}'", linkguid);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public:
|
|||||||
|
|
||||||
/// - Send the message
|
/// - Send the message
|
||||||
// Use SendAreaTriggerMessage for fastest delivery.
|
// Use SendAreaTriggerMessage for fastest delivery.
|
||||||
player->GetSession()->SendAreaTriggerMessage("%s", msg.c_str());
|
player->GetSession()->SendAreaTriggerMessage("{}", msg);
|
||||||
player->GetSession()->SendAreaTriggerMessage("|cffff0000[Message from administrator]:|r");
|
player->GetSession()->SendAreaTriggerMessage("|cffff0000[Message from administrator]:|r");
|
||||||
|
|
||||||
// Confirmation message
|
// Confirmation message
|
||||||
|
|||||||
Reference in New Issue
Block a user