Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2009, 10:00:15 AM (15 years ago)
Author:
rgrieder
Message:

Replaced <OgrePrerequisites.h> with "util/OgreForwardRefs.h": I haven't yet realised that OgrePrerequisites.h includes about every single std header by including the OgreMemoryManager.h file.
And while at it, I took care of some type conversions (partially revealed by the missing OgrePrerequisites.h that disabled warnings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/objects/worldentities/ExplosionChunk.cc

    r3188 r3192  
    151151            Vector3 change(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1));
    152152            change.normalise();
    153             change *= rnd(0.4, 0.8);
     153            change *= rnd(0.4f, 0.8f);
    154154            Vector3 velocity = this->getVelocity();
    155155            velocity.normalise();
    156156            velocity += change;
    157157            velocity.normalise();
    158             velocity *= length * rnd(0.8, 1.0);
     158            velocity *= length * rnd(0.8f, 1.0f);
    159159
    160160            this->setVelocity(velocity);
Note: See TracChangeset for help on using the changeset viewer.