- Timestamp:
- Jan 25, 2006, 5:09:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/space_ships/space_ship.cc
r6719 r6721 546 546 547 547 //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()*/ ) 549 549 { 550 550 int flags = 0; 551 551 SYNCHELP_READ_INT( flags ); 552 552 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; 562 562 563 563 } 564 564 565 565 //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 ); 572 577 } 573 578 } while( b != 0 );
Note: See TracChangeset
for help on using the changeset viewer.