From 0fb095b2eb2a2b04a9b6f2d73da043a2e4436576 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Thu, 23 Mar 2023 20:12:01 +0100 Subject: [PATCH] More cleanup --- src/client/component/chat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/chat.cpp b/src/client/component/chat.cpp index 26a81803..dd990e20 100644 --- a/src/client/component/chat.cpp +++ b/src/client/component/chat.cpp @@ -21,13 +21,13 @@ namespace chat return; } - auto mode = 0; - if (std::strcmp(params[0], "say_team") == 0) + int mode = 0; + if (params[0] == "say_team"s) { mode = 1; } - auto p = params.join(1); + const auto p = params.join(1); game::Scr_AddString(game::SCRIPTINSTANCE_SERVER, p.data() + 1); // Skip special char game::Scr_Notify_Canon(ent, game::Scr_CanonHash(params[0]), 1); @@ -45,7 +45,7 @@ namespace chat utils::hook::invoke(0x140298E70_g, ent, p.data()); } - uint64_t* divert_xuid_to_client_num_stub(int, int client_num, int) + uint64_t* divert_xuid_to_client_num_stub(int, const int client_num, int) { static thread_local uint64_t value; // zero xuid is invalid, so increase the clientnum to prevent 0 values