Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6892 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jan 31, 2006, 2:28:45 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6868 r6892  
    651651  }
    652652
    653   *reciever = -this->getOwner();
     653  *reciever = 0 - this->getOwner();
     654  //TODO: implement with SYNCHELP_WRITE_SENT()
    654655  bool sentSomething = false;
    655656
    656   if ( ( this->getHostID()==0 || this->getOwner() == this->getHostID() ) && PNode::needsReadSync() )
    657   {
     657  if ( PNode::needsReadSync() && ( this->getHostID()==0 || this->getOwner() == this->getHostID() ) )
     658  {
     659    PRINTF(0)("sending PNode::readSync\n");
    658660    SYNCHELP_WRITE_BYTE( DATA_sync, NWT_SS_B );
    659661    SYNCHELP_WRITE_FKT( PNode::readSync, NWT_SS_PN_SYNC );
     662    sentSomething = true;
    660663  }
    661664
     
    683686    {
    684687      oldMask = mask;
     688      PRINTF(0)("sending mask\n");
    685689      sentSomething = true;
    686690      SYNCHELP_WRITE_BYTE( DATA_flags, NWT_SS_B );
     
    710714    {
    711715      oldVelocity = velocity;
    712       //PRINTF(0)("SENDING velocity\n");
     716      PRINTF(0)("SENDING velocity\n");
    713717      //SYNCHELP_WRITE_BYTE( DATA_velocity, NWT_SS_B );
    714718      //SYNCHELP_WRITE_FLOAT( velocity.x, NWT_SS_VELX );
     
    720724    {
    721725      sentSomething = true;
     726      PRINTF(0)("SYNCHELP_WRITE_FKT( Playable::readSync, NWT_SS_PL_SYNC )\n");
    722727      SYNCHELP_WRITE_BYTE( DATA_playables, NWT_SS_B );
    723728      SYNCHELP_WRITE_FKT( Playable::readSync, NWT_SS_PL_SYNC );
     
    727732 
    728733  if ( !sentSomething )
    729     reciever = 0;
     734    *reciever = 0;
    730735
    731736  return SYNCHELP_WRITE_N;
Note: See TracChangeset for help on using the changeset viewer.