Players are now kicked from the game...
...when game creator presses the Computer vs Computer button. Should fix #12058 and #12059.
This commit is contained in:
parent
3f7ead7858
commit
1d701909da
1 changed files with 2 additions and 0 deletions
|
@ -492,6 +492,8 @@ void connect::process_event()
|
|||
|
||||
if (ai_.pressed()) {
|
||||
for(size_t m = 0; m != sides_.size(); ++m) {
|
||||
if(sides_[m].get_id() != preferences::login())
|
||||
kick_player(sides_[m].get_id());
|
||||
sides_[m].set_controller(CNTR_COMPUTER);
|
||||
}
|
||||
changed = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue