aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/chatcommand.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-09 22:21:46 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-09 22:21:46 +0100
commit9a3e1ec2daf753106ee95d53719d94921d3b051f (patch)
tree954d8b75530d66c15fcfcf153a3a4f351e49ef8e /NorthstarDedicatedTest/chatcommand.cpp
parent4d0e4679d05b146e5e43a1a707708c6451099c54 (diff)
downloadNorthstarLauncher-9a3e1ec2daf753106ee95d53719d94921d3b051f.tar.gz
NorthstarLauncher-9a3e1ec2daf753106ee95d53719d94921d3b051f.zip
add mod localisation, say command and more masterserver stuff
Diffstat (limited to 'NorthstarDedicatedTest/chatcommand.cpp')
-rw-r--r--NorthstarDedicatedTest/chatcommand.cpp7
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)