diff options
Diffstat (limited to 'NorthstarDedicatedTest/chatcommand.cpp')
-rw-r--r-- | NorthstarDedicatedTest/chatcommand.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/chatcommand.cpp b/NorthstarDedicatedTest/chatcommand.cpp index 866a1d79..4742b5fd 100644 --- a/NorthstarDedicatedTest/chatcommand.cpp +++ b/NorthstarDedicatedTest/chatcommand.cpp @@ -2,19 +2,20 @@ #include "chatcommand.h" #include "concommand.h" -typedef void(__fastcall *ClientSayTextType)(void* a1, const char* message, char unknownAlways1, bool isTeamChat); +// note: isIngameChat is an int64 because the whole register the arg is stored in needs to be 0'd out to work +typedef void(__fastcall *ClientSayTextType)(void* a1, const char* message, __int64 isIngameChat, bool isTeamChat); ClientSayTextType SayText; void ConCommand_say(const CCommand& args) { if (args.ArgC() >= 2) - SayText(nullptr, args.Arg(1), 0, false); + SayText(nullptr, args.ArgS(), true, false); } void ConCommand_say_team(const CCommand& args) { if (args.ArgC() >= 2) - SayText(nullptr, args.Arg(1), 0, true); + SayText(nullptr, args.ArgS(), true, true); } void InitialiseChatCommands(HMODULE baseAddress) |