Changeset 6822 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Jan 29, 2006, 1:57:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6815 r6822 28 28 #include "weapons/cannon.h" 29 29 30 #include " particle_emitter.h"30 #include "dot_emitter.h" 31 31 #include "sprite_particles.h" 32 32 … … 205 205 dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false); 206 206 207 this->burstEmitter = new ParticleEmitter(Vector(1,0,0), .01, 200, 0.0);207 this->burstEmitter = new DotEmitter(Vector(1,0,0), .01, 200, 0.0); 208 208 this->burstEmitter->setParent(this); 209 209 this->burstEmitter->setRelCoor(-1, .5, 0); … … 531 531 532 532 byte b; 533 533 534 534 while ( SYNCHELP_READ_REMAINING()>0 ) 535 535 { 536 536 SYNCHELP_READ_BYTE( b, NWT_SS_B ); 537 537 538 538 if ( b == DATA_state ) 539 539 { … … 544 544 continue; 545 545 } 546 546 547 547 if ( b == DATA_flags ) 548 548 { … … 559 559 bRollL = (flags & MASK_bRollL) != 0; 560 560 bRollR = (flags & MASK_bRollR) != 0; 561 561 562 562 continue; 563 563 } 564 564 565 565 if ( b == DATA_mouse ) 566 566 { … … 569 569 SYNCHELP_READ_FLOAT( mouseDir.v.y, NWT_SS_MOUSEDIRY ); 570 570 SYNCHELP_READ_FLOAT( mouseDir.v.z, NWT_SS_MOUSEDIRZ ); 571 571 572 572 continue; 573 573 } 574 574 575 575 if ( b == DATA_sync ) 576 576 { 577 577 if ( this->getOwner() != this->getHostID() ) 578 578 SYNCHELP_READ_FKT( PNode::writeSync, NWT_SS_PN_SYNC ); 579 579 580 580 continue; 581 581 } 582 582 583 583 if ( b == DATA_velocity ) 584 584 { … … 588 588 } 589 589 } 590 590 591 591 return SYNCHELP_READ_N; 592 592 } … … 621 621 622 622 *reciever = 0; 623 623 624 624 if ( this->getOwner() == this->getHostID() && PNode::needsReadSync() ) 625 625 {
Note: See TracChangeset
for help on using the changeset viewer.