Changeset 5924 for code/branches/core5/src/modules
- Timestamp:
- Oct 9, 2009, 6:04:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/objects/Planet.cc
r5911 r5924 47 47 * @brief Constructor 48 48 */ 49 Planet::Planet(BaseObject* creator) 49 Planet::Planet(BaseObject* creator): MovableEntity(creator) 50 50 { 51 51 RegisterObject(Planet); … … 64 64 void Planet::tick(float dt) 65 65 { 66 if 66 if(!this->isVisible()) 67 67 return; 68 68 69 69 if (GameMode::showsGraphics()) 70 70 { 71 Camera* activeCamera = this->getScene()->getCameraManager()->getActiveCamera();72 if 71 Camera* activeCamera = CameraManager::getInstance().getActiveCamera(); 72 if(activeCamera) 73 73 { 74 74 float distance = this->getPosition().distance( activeCamera->getWorldPosition() );
Note: See TracChangeset
for help on using the changeset viewer.