Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

Location:
code/trunk/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/ParticleEmitter.h

    r3280 r3300  
    6464        protected:
    6565            inline void setLODxml(unsigned int level)
    66                 { this->LOD_ = (LODParticle::Value)level; this->LODchanged(); }
     66                { this->LOD_ = static_cast<LODParticle::Value>(level); this->LODchanged(); }
    6767            inline unsigned int getLODxml() const
    6868                { return (unsigned int)this->LOD_; }
  • code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r3280 r3300  
    281281        else
    282282        {
    283             callMemberNetworkFunction(Pawn, doFire, this->getObjectID(), 0, ((uint8_t)firemode));
     283            callMemberNetworkFunction(Pawn, doFire, this->getObjectID(), 0, firemode);
    284284            if (this->weaponSystem_)
    285285                this->weaponSystem_->fire(firemode);
Note: See TracChangeset for help on using the changeset viewer.