Changeset 10595 in orxonox.OLD for branches/cleanup
- Timestamp:
- Feb 14, 2007, 9:18:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/tools/cameraman.cc
r10594 r10595 114 114 camera->lookAt(dynamic_cast<PNode*>(object)); 115 115 if( camera == State::getCamera() ) // If it is the current cam, we have to update the target 116 State::setCamera( camera, dynamic_cast<CameraTarget*>(object));116 State::setCamera( camera, camera->getTarget()); 117 117 return; 118 118 } … … 139 139 camera->setViewMode(Camera::ViewNormal); 140 140 if( camera == State::getCamera() ) // If it is the current cam, we have to update the target 141 State::setCamera( camera, dynamic_cast<CameraTarget*>(object));141 State::setCamera( camera, camera->getTarget()); 142 142 return; 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.