Merge pull request #66 from mjkzy/patch-2

discord presence final commit
This commit is contained in:
Maurice Heumann 2021-04-08 09:32:44 +02:00 committed by GitHub
commit 900614cb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,9 @@ namespace discord
dvar = game::Dvar_FindVar("sv_maxclients");
if (dvar)
{
auto clients = party::get_client_count();
discord_presence.partySize = clients;
auto clients = reinterpret_cast<int*>(0x1414CC290);
int clientsNum = *clients;
discord_presence.partySize = clientsNum;
discord_presence.partyMax = dvar->current.integer;
}