Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2007, 7:27:23 PM (18 years ago)
Author:
snellen
Message:

cleaned up the cameramanager, commented all functions, corrected spelling mistakes :-P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/world_entities/space_ships/space_ship.cc

    r10591 r10593  
    11411141void SpaceShip::setCameraDistance(float dist)
    11421142{
    1143 
    1144   CameraMan* cm = State::getCameraman();
    1145   Camera* c = cm->getCurrentCam();
     1143  Camera* c = State::getCamera();
    11461144  c->setViewTopDistance(dist);
    11471145
     
    11531151{
    11541152
    1155   CameraMan* cm = State::getCameraman();
    1156   Camera* c = cm->getCurrentCam();
     1153  Camera* c = State::getCamera();
    11571154  c->setViewTopFovy(fovy);
    11581155
     
    11631160void SpaceShip::updateTravelDistance()
    11641161{
    1165      CameraMan* cm = State::getCameraman();
    1166      Camera* c = cm->getCurrentCam();
    1167 
     1162
     1163  Camera* c = State::getCamera();
    11681164
    11691165  float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
Note: See TracChangeset for help on using the changeset viewer.