Fixed a problem with latest fix...
...which caused observers who joined as observer at the lobby to see themselves in the report.
This commit is contained in:
parent
05d9d42f1f
commit
b63eb313af
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ void game::add_player(network::connection player)
|
|||
|
||||
//send observer join of all the observers in the game to player
|
||||
for(std::vector<network::connection>::const_iterator pl = players_.begin()+1; pl != players_.end(); ++pl) {
|
||||
if(sides_.count(*pl) == 0) {
|
||||
if(sides_.count(*pl) == 0 && *pl != player) {
|
||||
info = player_info_->find(*pl);
|
||||
if(info != player_info_->end()) {
|
||||
cfg.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue