forgot discord support ugh...

This commit is contained in:
NepDisk authored and Alug committed 2023-11-15 19:38:33 +01:00
1 parent 84140f3faa
commit 7a4ef35e7b
1 file changed
+4
+4
View File
@@ -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