Use fmt::format for LOGMESSAGERENDER

The format string can be checked at compile time. It will be easier to
transition to `std::format`.
This commit is contained in:
phosit committed 2026-10-05 20:29:25 +02:00
1 parent 43cb3100b6
commit d686708c92
10 files changed
+21 -17

No files matched your search

+2 -1
View File
@@ -639,7 +639,8 @@ bool CNetClient::HandleMessage(CNetMessage* message)
std::stringstream stream;
LOGMESSAGERENDER("Serializing game at turn %u for rejoining player", m_ClientTurnManager->GetCurrentTurn());
LOGMESSAGERENDER("Serializing game at turn {} for rejoining player",
m_ClientTurnManager->GetCurrentTurn());
std::uint32_t turn = to_le32(m_ClientTurnManager->GetCurrentTurn());
stream.write((char*)&turn, sizeof(turn));