Prevent joining a Discord lobby when you're already hosting

This commit is contained in:
MysterD 2022-05-11 18:10:27 -07:00
parent 37fb101e05
commit ad09ecd8ef
1 changed files with 6 additions and 2 deletions

View File

@ -166,9 +166,13 @@ static bool ns_discord_initialize(enum NetworkType networkType) {
}
// create lobby
if (networkType == NT_SERVER) { discord_lobby_create(); }
if (networkType == NT_SERVER) {
discord_lobby_create();
gActivityLock = true;
} else {
gActivityLock = false;
}
gActivityLock = false;
gDiscordInitialized = true;
LOGFILE_INFO(LFT_DISCORD, "initialized");