From fa18695898066eb473f499bd23ac39b7eac0d97a Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 8 Sep 2016 21:53:58 +0200 Subject: [PATCH] Unload mod --- src/Components/Modules/Party.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index 9ff29dde..ed693242 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -383,6 +383,17 @@ namespace Components Command::Execute("closemenu popup_reconnectingtoparty"); Download::InitiateClientDownload(info.Get("fs_game")); } + else if (!Dvar::Var("fs_game").Get().empty() && info.Get("fs_game").empty()) + { + Dvar::Var("fs_game").Set(""); + + if (Dvar::Var("cl_modVidRestart").Get()) + { + Command::Execute("vid_restart", false); + } + + Command::Execute("reconnect", false); + } else { if (Party::Container.MatchType == 1) // Party