Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10408 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 27, 2007, 5:05:01 PM (18 years ago)
Author:
snellen
Message:

changed loadParam in cameraman

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/cameraman.cc

    r10406 r10408  
    6262{
    6363  BaseObject::loadParams(root);
    64 
    65   LOAD_PARAM_START_CYCLE(root, object);
     64  const TiXmlElement* camerasTag = root->FirstChildElement("Cameras");
     65
     66  LOAD_PARAM_START_CYCLE(camerasTag, object);
    6667  {
    6768    this->createCam(object);
     
    167168{
    168169  BaseObject* object = ObjectListBase::getBaseObject(className, targetEntity);
     170
    169171  if(object != NULL)
     172  {
    170173   this->atachCurrTarget(dynamic_cast<PNode*>(object));
     174   return;
     175  }
     176
     177printf("ERROR CAMERAMANAGER: Couldn't set camera target to: %s %s \n", className.c_str(),targetEntity.c_str() );
    171178}
    172179
Note: See TracChangeset for help on using the changeset viewer.