Hello,
that is from GameState.cs:
instead of
that is from GameState.cs:
if (updateOperation.MaxPlayers.HasValue && updateOperation.MaxPlayers.Value != this.MaxPlayer)
{
this.MaxPlayer = updateOperation.MaxPlayers.Value;
this.properties[(byte)GameParameter.MaxPlayers] = this.MaxPlayer;
changed = true;
}
if (updateOperation.IsOpen.HasValue && updateOperation.IsOpen.Value != this.IsOpen)
{
this.IsOpen = updateOperation.IsOpen.Value;
this.properties[(byte)GameParameter.IsOpen] = this.MaxPlayer;
changed = true;
}
I think it should bethis.properties[(byte)GameParameter.IsOpen] = this.IsOpen;
instead of
this.properties[(byte)GameParameter.IsOpen] = this.MaxPlayer;