Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10414 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 27, 2007, 10:24:52 PM (18 years ago)
Author:
snellen
Message:

fixed segfault if syntax error in xml

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

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

    r10413 r10414  
    6363{
    6464  BaseObject::loadParams(root);
    65   const TiXmlElement* camerasTag = root->FirstChildElement("Cameras");
    66   if( camerasTag != NULL)
    67   {
     65  LoadParamXML(root, "Cameras", this, CameraMan, createCameras);
     66}
     67
     68
     69void CameraMan::createCameras(const TiXmlElement* camerasTag)
     70{
     71
    6872    LOAD_PARAM_START_CYCLE(camerasTag, object);
    6973    {
     
    7175    }
    7276    LOAD_PARAM_END_CYCLE(object);
    73   }
    74 
    75 }
     77
     78}
     79
    7680
    7781
  • trunk/src/world_entities/cameraman.h

    r10413 r10414  
    2626    void setCam(Camera* camera);
    2727
     28    void createCameras(const TiXmlElement* camerasTag);
    2829    void createCam(const TiXmlElement* root);
    2930    void moveCam(int x, int y, int z,  int camNo);
Note: See TracChangeset for help on using the changeset viewer.