Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2015, 3:30:38 PM (9 years ago)
Author:
landauf
Message:

don't call srand()! this is already done by Core. also fixed some MSVC-warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS15merge/src/modules/weapons/projectiles/GravityBombField.cc

    r10619 r10621  
    6464        //Let the Bomb Modell in the centre rotate in a random direction.
    6565        Vector3 randomRotation;
    66         srand(time(NULL));
    67         randomRotation.x = rand();
    68         randomRotation.y = rand();
    69         randomRotation.y = rand();
     66        randomRotation.x = rnd();
     67        randomRotation.y = rnd();
     68        randomRotation.y = rnd();
    7069        randomRotation.normalise();
    7170        bombModel_->setAngularAcceleration(randomRotation*(PEAK_ANGULAR_VELOCITY/FORCE_FIELD_LIFETIME));
     
    114113                explosionCross_ = new ParticleEmitter(this->getContext());
    115114                explosionCross_->setSource("Orxonox/FieldExplosion");
    116                 explosionCross_->setOrientation(rand(), rand(), rand(), rand());
     115                explosionCross_->setOrientation(rnd(), rnd(), rnd(), rnd());
    117116                explosionCross_->setScale(0.7);
    118117                this->attach(explosionCross_);
Note: See TracChangeset for help on using the changeset viewer.