diff --git a/include/helpers.hpp b/include/helpers.hpp index fa46368d..f3e89abb 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -140,7 +140,6 @@ inline const char *classname(int clazz) } void PrintChat(const char *fmt, ...); -void PrintChat(bool cat, const char *fmt, ...); void ChangeName(std::string name); void WhatIAmLookingAt(int *result_eindex, Vector *result_pos); diff --git a/src/helpers.cpp b/src/helpers.cpp index 0adcdad9..eeea6f7a 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -1489,29 +1489,6 @@ CatCommand print_classnames("debug_print_classnames", "Lists classnames currentl } }); -void PrintChat(bool cat, const char *fmt, ...) -{ -#if ENABLE_VISUALS - CHudBaseChat *chat = (CHudBaseChat *) g_CHUD->FindElement("CHudChat"); - if (chat) - { - std::unique_ptr buf(new char[1024]); - va_list list; - va_start(list, fmt); - vsprintf(buf.get(), fmt, list); - va_end(list); - std::unique_ptr str; - if (cat) - str = std::move(strfmt("\x07%06X[\x07%06XCAT\x07%06X]\x01 %s", 0x5e3252, 0xba3d9a, 0x5e3252, buf.get())); - else - str = std::move(strfmt("%s", buf.get())); - // FIXME DEBUG LOG - logging::Info("%s", str.get()); - chat->Printf(str.get()); - } -#endif -} - void PrintChat(const char *fmt, ...) { #if ENABLE_VISUALS diff --git a/src/nullnexus.cpp b/src/nullnexus.cpp index 629c6aaa..4492dc67 100644 --- a/src/nullnexus.cpp +++ b/src/nullnexus.cpp @@ -34,7 +34,7 @@ void printmsg(std::string &usr, std::string &msg, int colour = 0xff9340) if (g_Settings.bInvalid) g_ICvar->ConsoleColorPrintf(MENU_COLOR, "[Nullnexus] %s: %s\n", usr.c_str(), msg.c_str()); else - PrintChat(false, "\x07%06X[\x07%06XNullnexus\x07%06X] \x07%06X%s\x01: %s", 0x5e3252, 0xba3d9a, 0x5e3252, colour, usr.c_str(), msg.c_str()); + PrintChat("\x07%06X[\x07%06XNullnexus\x07%06X] \x07%06X%s\x01: %s", 0x5e3252, 0xba3d9a, 0x5e3252, colour, usr.c_str(), msg.c_str()); #endif } void printmsgcopy(std::string usr, std::string msg)