Log de se faire tirer

This commit is contained in:
MarcEricMartel 2023-12-16 13:05:04 -05:00
parent 547d0fb3f8
commit 38bab49806

View File

@ -281,6 +281,11 @@ void Server::Run() {
/* Process */ /* Process */
if (conn->m_nsync) { if (conn->m_nsync) {
if (conn->player->m_hit) {
std::string str = conn->player->GetUsername();
str = str.append(" has been hit: ").append(std::to_string(conn->player->GetHP()));
Log(str, false, false);
}
Timestamp tstamp = conn->Run(m_world); Timestamp tstamp = conn->Run(m_world);