Empty the party_hosts vector when IPC mode is disabled so any configuration will get loaded again

This commit is contained in:
delimeats-ch 2021-04-01 14:27:15 -05:00
parent 2bd71a9abc
commit 4b0be40dce

View File

@ -354,7 +354,7 @@ void party_routine()
static InitRoutine init([]() {
host_list.installChangeCallback([](settings::VariableBase<std::string> &var, std::string after) { repopulate(after); });
ipc_mode.installChangeCallback([](settings::VariableBase<bool> &var, bool after) { repopulate(*host_list); });
ipc_mode.installChangeCallback([](settings::VariableBase<bool> &var, bool after) { party_hosts.clear(); });
EC::Register(EC::Paint, party_routine, "paint_autoparty", EC::average);
});
} // namespace hacks::tf2::autoparty