From 38bab49806dfab2e4c7b4a7f3fdf8209b3e821f4 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sat, 16 Dec 2023 13:05:04 -0500 Subject: [PATCH] Log de se faire tirer --- SQCSim-srv/server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SQCSim-srv/server.cpp b/SQCSim-srv/server.cpp index 2a8825e..835783a 100644 --- a/SQCSim-srv/server.cpp +++ b/SQCSim-srv/server.cpp @@ -281,6 +281,11 @@ void Server::Run() { /* Process */ 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);