About Store Forum Documentation Contact



Post Reply 
Esenthel MMO Contradiction conditional
Author Message
psycode Offline
Member

Post: #1
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 grin
(This post was last modified: 06-13-2014 08:46 PM by psycode.)
06-13-2014 08:20 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Esenthel MMO Contradiction conditional
This is some leftover from old p2p support
06-14-2014 01:04 AM
Find all posts by this user Quote this message in a reply
Post Reply