Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6721 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 25, 2006, 5:09:10 PM (19 years ago)
Author:
rennerc
Message:

dont sync flags

File:
1 edited

Legend:

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

    r6719 r6721  
    546546
    547547    //TODO: do not recieve data if you are the owner
    548     if ( false && b == DATA_flags /*&& this->getHostID()!=this->getOwner()*/ )
     548    if ( b == DATA_flags /*&& this->getHostID()!=this->getOwner()*/ )
    549549    {
    550550      int flags = 0;
    551551      SYNCHELP_READ_INT( flags );
    552552
    553       bUp = (flags & MASK_bUp) != 0;
    554       bDown = (flags & MASK_bDown) != 0;
    555       bLeft = (flags & MASK_bLeft) != 0;
    556       bRight = (flags & MASK_bRight) != 0;
    557       bAscend = (flags & MASK_bAscend) != 0;
    558       bDescend = (flags & MASK_bDescend) != 0;
    559       bFire = (flags & MASK_bFire) != 0;
    560       bRollL = (flags & MASK_bRollL) != 0;
    561       bRollR = (flags & MASK_bRollR) != 0;
     553      //bUp = (flags & MASK_bUp) != 0;
     554      //bDown = (flags & MASK_bDown) != 0;
     555      //bLeft = (flags & MASK_bLeft) != 0;
     556      //bRight = (flags & MASK_bRight) != 0;
     557      //bAscend = (flags & MASK_bAscend) != 0;
     558      //bDescend = (flags & MASK_bDescend) != 0;
     559      //bFire = (flags & MASK_bFire) != 0;
     560      //bRollL = (flags & MASK_bRollL) != 0;
     561      //bRollR = (flags & MASK_bRollR) != 0;
    562562
    563563    }
    564564
    565565    //TODO: do not recieve data if you are the owner
    566     if ( false && b == DATA_mouse /*&& this->getHostID()!=this->getOwner()*/ )
    567     {
    568       SYNCHELP_READ_FLOAT( mouseDir.w );
    569       SYNCHELP_READ_FLOAT( mouseDir.v.x );
    570       SYNCHELP_READ_FLOAT( mouseDir.v.y );
    571       SYNCHELP_READ_FLOAT( mouseDir.v.z );
     566    if ( b == DATA_mouse /*&& this->getHostID()!=this->getOwner()*/ )
     567    {
     568      float asdf;
     569      SYNCHELP_READ_FLOAT( asdf );
     570      SYNCHELP_READ_FLOAT( asdf );
     571      SYNCHELP_READ_FLOAT( asdf );
     572      SYNCHELP_READ_FLOAT( asdf );
     573      //SYNCHELP_READ_FLOAT( mouseDir.w );
     574      //SYNCHELP_READ_FLOAT( mouseDir.v.x );
     575      //SYNCHELP_READ_FLOAT( mouseDir.v.y );
     576      //SYNCHELP_READ_FLOAT( mouseDir.v.z );
    572577    }
    573578  } while( b != 0 );
Note: See TracChangeset for help on using the changeset viewer.