fixed bug where multiplayer games that disallowed observers didn't work properly
This commit is contained in:
parent
3f75e237ab
commit
25d2ac3fb3
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ void game::send_data(const config& data, network::connection exclude)
|
|||
{
|
||||
for(std::vector<network::connection>::const_iterator
|
||||
i = players_.begin(); i != players_.end(); ++i) {
|
||||
if(*i != exclude && (allow_observers_ || sides_.count(*i) == 1)) {
|
||||
if(*i != exclude && (allow_observers_ || is_needed(*i) || sides_.count(*i) == 1)) {
|
||||
network::queue_data(data,*i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue