mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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)
|
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.
|
// Grab the host's IP for joining.
|
||||||
if ((join = DRPC_GetServerIP()) != NULL)
|
if (cv_allownewplayer.value && ((join = DRPC_GetServerIP()) != NULL))
|
||||||
discordPresence.joinSecret = join;
|
discordPresence.joinSecret = join;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue