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)

Location:
code/branches/pch/src/orxonox/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/interfaces/RadarViewable.cc

    r3182 r3192  
    126126//Vector3 v = this->getRVWorldPosition();
    127127            //this->line_->setPoint(1, Vector3(0,v.y,0) );
    128             this->line_->setPoint(1, Vector3( 0, (int) -Map::getSingletonPtr()->movablePlane_->getDistance( this->getRVWorldPosition() ) ,0 ));
     128            this->line_->setPoint(1, Vector3( 0, static_cast<float>(static_cast<int>( -Map::getSingletonPtr()->movablePlane_->getDistance( this->getRVWorldPosition() ) ) ) ,0 ));
    129129            this->line_->update();
    130130            if( Map::getSingletonPtr()->playerShipNode_ )
  • code/branches/pch/src/orxonox/interfaces/RadarViewable.h

    r3182 r3192  
    3434#include <string>
    3535#include <cassert>
    36 #include <OgrePrerequisites.h>
    3736
    3837#include "util/Math.h"
     38#include "util/OgreForwardRefs.h"
    3939#include "core/OrxonoxClass.h"
    4040
Note: See TracChangeset for help on using the changeset viewer.