psycode
Member
|
Esenthel MMO Contradiction conditional
Code:
Hey,
Something is confusing me in the code:
if(f.size())REP(neighbors())
{
Net::Neighbor &neighbor=T.neighbor(i);
if(skip_direct_connections ? !neighbor.direct_connection : true) // p2p
if(Client *client=CAST(Client, &neighbor.obj()))
{f.pos(0); client->connection.dataFull(f, f.left(), false);}
}
//if skip_direct n->direct = false {send to each neighbour}
// else if n->direct = true { nothing }
//if !skip_direct then {send to each neighbour}
If you wish to only do server connections, why try to do peer to peer when the peer does not have a direct connection to other peers
(This post was last modified: 06-13-2014 08:46 PM by psycode.)
|
|
06-13-2014 08:20 PM |
|
Esenthel
Administrator
|
RE: Esenthel MMO Contradiction conditional
This is some leftover from old p2p support
|
|
06-14-2014 01:04 AM |
|