Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 6:02:42 PM (17 years ago)
Author:
FelixSchulthess
Message:

messing up planet so it will work in client mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lodfinal/src/orxonox/objects/worldentities/Planet.cc

    r2388 r2394  
    3737#include "CameraManager.h"
    3838#include "objects/Scene.h"
    39 #include "Camera.h"
    4039#include <math.h>
    4140
     
    7271        if(!this->isVisible())
    7372            return;
    74            
    75         Camera* activeCamera = CameraManager::getInstance().getActiveCamera();
     73       
     74        if(!activeCamera_) activeCamera_ = CameraManager::getInstance().getActiveCamera();
    7675        Real distance = this->getPosition().distance( activeCamera->getWorldPosition() );
    7776        COUT(2) << distance << std::endl;
Note: See TracChangeset for help on using the changeset viewer.