use flag to separate customized GC clients from non-customized

This commit is contained in:
Martin Michelsen
2024-04-27 14:25:46 -07:00
parent f5c2c930d8
commit c7dd98ccc0
6 changed files with 15 additions and 2 deletions
+1
View File
@@ -1436,6 +1436,7 @@ void send_game_menu_t(
for (shared_ptr<Lobby> l : s->all_lobbies()) {
if (l->is_game() &&
(client_has_debug || l->version_is_allowed(c->version())) &&
(client_has_debug || (l->check_flag(Lobby::Flag::IS_CLIENT_CUSTOMIZATION) == c->config.check_flag(Client::Flag::IS_CLIENT_CUSTOMIZATION))) &&
(l->check_flag(Lobby::Flag::IS_SPECTATOR_TEAM) == is_spectator_team_list) &&
(!show_tournaments_only || l->tournament_match)) {
games.emplace(l);