Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 12:15:30 PM (16 years ago)
Author:
scheusso
Message:

Lots of changes:
Some fixes/hacks in objects
Changes in Gamestates and bugfixes
Removed some asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/objects/SpaceShip.cc

    r1834 r1901  
    181181          this->setRadarObjectColour(this->getProjectileColour());
    182182      }
    183       assert(Model::create());
     183      Model::create();
    184184      this->init();
    185185      return true;
     
    255255
    256256            // START CREATING ADDITIONAL EFFECTS
    257             /*this->backlight_ = new Backlight(this->maxSpeed_, 0.8);
    258             this->attachObject(this->backlight_);
    259             this->backlight_->setPosition(-2.35, 0, 0.2);
    260             this->backlight_->setColour(this->getProjectileColour());
    261 
    262             this->smoke_ = new ParticleSpawner();
    263             this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3);
    264             this->attachObject(this->smoke_);
    265 
    266             this->fire_ = new ParticleSpawner();
    267             this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1);
    268             this->attachObject(this->fire_);
    269             */
     257            if(!network::Host::running()){
     258              this->backlight_ = new Backlight(this->maxSpeed_, 0.8);
     259              this->backlight_->create();
     260              this->attachObject(this->backlight_);
     261              this->backlight_->setPosition(-2.35, 0, 0.2);
     262              this->backlight_->setColour(this->getProjectileColour());
     263 
     264              this->smoke_ = new ParticleSpawner();
     265              this->smoke_->setParticle("Orxonox/smoke5", LODParticle::normal, 0, 0, 3);
     266              this->attachObject(this->smoke_);
     267 
     268              this->fire_ = new ParticleSpawner();
     269              this->fire_->setParticle("Orxonox/fire3", LODParticle::normal, 0, 0, 1);
     270              this->attachObject(this->fire_);
     271            }
     272           
    270273            // END CREATING ADDITIONAL EFFECTS
    271274
Note: See TracChangeset for help on using the changeset viewer.