Changeset 5911 for code/branches/core5/src/modules
- Timestamp:
- Oct 8, 2009, 10:56:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/objects/Planet.cc
r5738 r5911 47 47 * @brief Constructor 48 48 */ 49 Planet::Planet(BaseObject* creator) : MovableEntity(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 (!this->isVisible())66 if (!this->isVisible()) 67 67 return; 68 68 69 69 if (GameMode::showsGraphics()) 70 70 { 71 Camera* activeCamera = CameraManager::getInstance().getActiveCamera();72 if (activeCamera)71 Camera* activeCamera = this->getScene()->getCameraManager()->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.