diff --git a/SQCSim-srv/server.cpp b/SQCSim-srv/server.cpp index f9e173b..f277f12 100644 --- a/SQCSim-srv/server.cpp +++ b/SQCSim-srv/server.cpp @@ -233,7 +233,7 @@ void Server::Run() { sync_acc -= 1000; --timer; std::string str = "Timer: "; - Log(str.append(std::to_string(timer)), false, false); + Log(str.append(std::to_string(timer).append(" SyncAcc: ").append(std::to_string(sync_acc))), false, false); } for (auto& [key, conn] : m_conns) { @@ -275,7 +275,9 @@ void Server::Run() { std::string killer = m_conns.at(key)->player->GetUsername(); - strcpy(chat.mess, getDeathMessage(conn->player->GetUsername(), killer).c_str()); + std::string mess = getDeathMessage(conn->player->GetUsername(), killer); + + strcpy(chat.mess, mess.c_str()); m_chatlog[tstamp] = chat;