Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10666 in orxonox.OLD


Ignore:
Timestamp:
May 31, 2007, 4:13:43 PM (17 years ago)
Author:
retolu
Message:

little changes, arranged clearlier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/adm/src/world_entities/npcs/adm_turret.cc

    r10664 r10666  
    3636
    3737/**
    38 *  destructs the turret, deletes allocated memory
     38* destructs the turret, deletes allocated memory
    3939*/
    4040AdmTurret::~AdmTurret ()
     
    4343}
    4444
     45/**
     46* Constructor with XML Element
     47*/
    4548AdmTurret::AdmTurret (const  TiXmlElement* root)
    4649{
     
    7881void AdmTurret::loadParams(const TiXmlElement* root)
    7982{
    80         WorldEntity::loadParams(root);
     83        if (root != NULL)
     84        {
     85                WorldEntity::loadParams(root);
    8186
    82         LoadParam(root, "target", this, AdmTurret, setTarget)
    83                 .describe("the filename of the World Entity, that is to be shot at")
    84                 .defaultValues("");
     87                LoadParam(root, "target", this, AdmTurret, setTarget)
     88                        .describe("the filename of the World Entity, that is to be shot at")
     89                        .defaultValues("");
     90        }
    8591}
    8692
Note: See TracChangeset for help on using the changeset viewer.