add mods menu in lobby

This commit is contained in:
m
2022-09-03 05:06:45 -05:00
parent eba62a20ca
commit 9fce064632
4 changed files with 22 additions and 12 deletions

View File

@ -85,7 +85,7 @@ namespace mods
return;
}
if (!game::Com_InFrontend())
if (!game::Com_InFrontend() && (game::environment::is_mp() && !game::VirtualLobby_Loaded()))
{
console::info("Cannot load mod while in-game!\n");
game::CG_GameMessage(0, "^1Cannot unload mod while in-game!");
@ -125,7 +125,7 @@ namespace mods
return;
}
if (!game::Com_InFrontend())
if (!game::Com_InFrontend() && (game::environment::is_mp() && !game::VirtualLobby_Loaded()))
{
console::info("Cannot unload mod while in-game!\n");
game::CG_GameMessage(0, "^1Cannot unload mod while in-game!");