Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 11, 2006, 3:35:24 PM (18 years ago)
Author:
rennerc
Message:

base_object.cc: fixed bug with sync

File:
1 edited

Legend:

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

    r6469 r6483  
    574574    SYNCHELP_READ_FLOAT( xMouse );
    575575    SYNCHELP_READ_FLOAT( yMouse );
    576     SYNCHELP_READ_FLOAT( mouseSensitivity ); //TODO: remove this two lines
     576    SYNCHELP_READ_FLOAT( mouseSensitivity );
    577577    SYNCHELP_READ_FLOAT( cycle );
    578578  }
     
    609609  *reciever = 0;
    610610
    611   if ( this->getHostID()!=this->getOwner() )
     611  if ( this->getHostID()==this->getOwner() )
    612612  {
    613613    int mask = 0;
     
    630630      mask |= MASK_bRollR;
    631631
    632     static int oldMask = mask+1; //so it it different the first time!
     632    static int oldMask = mask+1; //so it is different the first time!
    633633    static float oldxMouse = xMouse + 1.0;
    634634    static float oldyMouse = yMouse + 1.0;
     
    649649      SYNCHELP_WRITE_FLOAT( yMouse );
    650650      SYNCHELP_WRITE_FLOAT( mouseSensitivity );
    651       SYNCHELP_WRITE_FLOAT( cycle );  //TODO: remove this two lines
     651      SYNCHELP_WRITE_FLOAT( cycle );
    652652    }
    653653  }
Note: See TracChangeset for help on using the changeset viewer.