mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 05:51:58 +00:00
Don't allow invites if allowjoin is off
This commit is contained in:
parent
0576729ff4
commit
1a966f4a11
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ void DRPC_UpdatePresence(void)
|
|||
discordPresence.partyMax = cv_maxplayers.value; // Max players (TODO: another variable should hold this, so that maxplayers doesn't have to be a netvar)
|
||||
|
||||
// Grab the host's IP for joining.
|
||||
if ((join = DRPC_GetServerIP()) != NULL)
|
||||
if (cv_allownewplayer.value && ((join = DRPC_GetServerIP()) != NULL))
|
||||
discordPresence.joinSecret = join;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue