What a big mess.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user