mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Merge pull request #66 from mjkzy/patch-2
discord presence final commit
This commit is contained in:
commit
900614cb15
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user