exempt solo-mode games from $debug client placement

This commit is contained in:
Martin Michelsen
2023-11-10 11:57:58 -08:00
parent d8e35b021f
commit 51ba23faa6
+1 -1
View File
@@ -153,7 +153,7 @@ void Lobby::add_client(shared_ptr<Client> 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;