forgot discord support ugh...
This commit is contained in:
1 parent
84140f3faa
commit
7a4ef35e7b
1 file changed
+4
@@ -480,14 +480,18 @@ void DRPC_UpdatePresence(void)
|
||||
// Server info
|
||||
if (netgame)
|
||||
{
|
||||
#ifdef MASTERSERVER
|
||||
if (cv_advertise.value)
|
||||
{
|
||||
discordPresence.state = "Public";
|
||||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
discordPresence.state = "Private";
|
||||
#ifdef MASTERSERVER
|
||||
}
|
||||
#endif
|
||||
|
||||
discordPresence.partyId = server_context; // Thanks, whoever gave us Mumble support, for implementing the EXACT thing Discord wanted for this field!
|
||||
discordPresence.partySize = D_NumPlayers(); // Players in server
|
||||
|
||||
Reference in new issue
Block a user