Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6216 in orxonox.OLD for branches/christmas_branche/src


Ignore:
Timestamp:
Dec 21, 2005, 11:52:20 AM (19 years ago)
Author:
bensch
Message:

christmas: chaging of entities works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/world_entities/player.cc

    r6215 r6216  
    2121
    2222#include "class_list.h"
     23#include "state.h"
    2324
    2425using namespace std;
     
    9495         if (this->controllable != (*node) && (dynamic_cast<PNode*>(*node)->getAbsCoor() - this->controllable->getAbsCoor()).len() < 10.0)
    9596       {
    96          printf("strange\n");
    9797         this->disconnectControllable();
    9898         this->setControllable(dynamic_cast<Playable*>(*node));
     99         State::getCamera()->setParentSoft(this->controllable);
     100         State::getCameraTarget()->setParentSoft(this->controllable);
     101
    99102         break;
    100103       }
Note: See TracChangeset for help on using the changeset viewer.