fixed bug where multiplayer games that disallowed observers didn't work properly

This commit is contained in:
Dave White 2004-07-18 21:55:07 +00:00
parent 3f75e237ab
commit 25d2ac3fb3

View file

@ -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);
}
}