From 51ba23faa609f3bf75c133ec88396a01a9b6da42 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 10 Nov 2023 11:57:58 -0800 Subject: [PATCH] exempt solo-mode games from $debug client placement --- src/Lobby.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lobby.cc b/src/Lobby.cc index ea5330ce..740438a5 100644 --- a/src/Lobby.cc +++ b/src/Lobby.cc @@ -153,7 +153,7 @@ void Lobby::add_client(shared_ptr c, ssize_t required_client_id) { this->clients[required_client_id] = c; index = required_client_id; - } else if (c->config.check_flag(Client::Flag::DEBUG_ENABLED)) { + } else if (c->config.check_flag(Client::Flag::DEBUG_ENABLED) && (this->mode != GameMode::SOLO)) { for (index = max_clients - 1; index >= min_client_id; index--) { if (!this->clients[index].get()) { this->clients[index] = c;