Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 9:11:12 AM (16 years ago)
Author:
landauf
Message:
  • GlobalShader in dedicated mode works again
  • Shooting as a client works
  • Fixed problem with NotificationQueue
Location:
code/branches/presentation/src/orxonox/objects/weaponSystem
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/weaponSystem/Weapon.cc

    r2493 r2501  
    5050        this->magazineLoadingTime_ = 0;
    5151        this->bReloading_ = false;
     52
     53        this->setObjectMode(0x0);
    5254    }
    5355
  • code/branches/presentation/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc

    r2497 r2501  
    5454
    5555        // Get notification about collisions
    56         this->enableCollisionCallback();
    5756
    58         this->setCollisionType(Kinematic);
     57        if (Core::isMaster())
     58        {
     59            this->enableCollisionCallback();
    5960
    60         SphereCollisionShape* shape = new SphereCollisionShape(this);
    61         shape->setRadius(10);
    62         this->attachCollisionShape(shape);
     61            this->setCollisionType(Kinematic);
    6362
    64         if(Core::isMaster())
    65           this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject)));
     63            SphereCollisionShape* shape = new SphereCollisionShape(this);
     64            shape->setRadius(10);
     65            this->attachCollisionShape(shape);
     66
     67            this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject)));
     68        }
    6669    }
    6770
Note: See TracChangeset for help on using the changeset viewer.