Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10595 in orxonox.OLD for branches/cleanup


Ignore:
Timestamp:
Feb 14, 2007, 9:18:30 PM (18 years ago)
Author:
snellen
Message:

now the real cameraTarget is set in the state as target… not just the pnode of it!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/world_entities/tools/cameraman.cc

    r10594 r10595  
    114114    camera->lookAt(dynamic_cast<PNode*>(object));
    115115    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());
    117117    return;
    118118  }
     
    139139    camera->setViewMode(Camera::ViewNormal);
    140140    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());
    142142    return;
    143143  }
Note: See TracChangeset for help on using the changeset viewer.