exempt solo-mode games from $debug client placement
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ void Lobby::add_client(shared_ptr<Client> c, ssize_t required_client_id) {
|
|||||||
this->clients[required_client_id] = c;
|
this->clients[required_client_id] = c;
|
||||||
index = required_client_id;
|
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--) {
|
for (index = max_clients - 1; index >= min_client_id; index--) {
|
||||||
if (!this->clients[index].get()) {
|
if (!this->clients[index].get()) {
|
||||||
this->clients[index] = c;
|
this->clients[index] = c;
|
||||||
|
|||||||
Reference in New Issue
Block a user