What a big mess.

This commit is contained in:
MarcEricMartel 2023-12-06 12:32:26 -05:00
parent adf36c8905
commit 3b0f9650d4

View File

@ -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;