mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 12:29:13 +00:00
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:
10 files changed
+21
-17
No files matched your search
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user