Prevent joining a Discord lobby when you're already hosting
This commit is contained in:
parent
2c9f42abd6
commit
934d41a44e
|
@ -166,9 +166,13 @@ static bool ns_discord_initialize(enum NetworkType networkType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// create lobby
|
// 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;
|
gDiscordInitialized = true;
|
||||||
LOGFILE_INFO(LFT_DISCORD, "initialized");
|
LOGFILE_INFO(LFT_DISCORD, "initialized");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue