Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2007, 11:54:17 PM (18 years ago)
Author:
gfilip
Message:

override

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/cameraman.cc

    r10195 r10197  
    11#include "shell_command.h"
    22#include "cameraman.h"
    3 #include "camera.h"
     3
    44#include "state.h"
    55
     
    99cameraman::cameraman()
    1010{
    11   currentCam=State::getCameraNode();
     11  currentCam=State::getCamera();
    1212  cameras[0]=currentCam;
    1313  camAmount=1;
     
    2020if (camAmount<6)
    2121{
    22   PNode* newCamera=new Camera();
     22  Camera* newCamera=new Camera();
    2323  cameras[camAmount]=newCamera;
    2424}
     
    2828{
    2929  if (cameraNo<camAmount)
     30  {
    3031  currentCam=cameras[cameraNo];
     32  State::setCamera(currentCam, currentCam->getTargetNode());
     33  }
    3134
    3235}
Note: See TracChangeset for help on using the changeset viewer.