Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 3:37:48 AM (16 years ago)
Author:
landauf
Message:
  • Added a health bar
  • Some changes in CameraManager to handle the case when no camera exists after removing the last one, but this is still somehow buggy (freezes and later crashes reproducible but inexplicable after a few respawns)
  • Added PawnManager to handle destruction of Pawns without using delete within tick()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/overlays/OrxonoxOverlay.cc

    r2256 r2369  
    6262
    6363        this->owner_ = 0;
     64        this->group_ = 0;
    6465
    6566        if (!Core::showsGraphics())
    6667            ThrowException(NoGraphics, "Can't create OrxonoxOverlay, graphics engine not initialized");
    67 
    68         // add this overlay to the static map of OrxonoxOverlays
    69         if (overlays_s.find(this->getName()) != overlays_s.end())
    70         {
    71             COUT(1) << "Overlay names should be unique or you cannnot access them via console. Name: \"" << this->getName() << "\"" << std::endl;
    72         }
    73         overlays_s[this->getName()] = this;
    7468
    7569        // create the Ogre::Overlay
     
    132126
    133127        XMLPortParam(OrxonoxOverlay, "size",      setSize,      getSize,      xmlElement, mode);
    134         XMLPortParam(OrxonoxOverlay, "pickPoint", setPickPoint, getPickPoint, xmlElement, mode);
     128        XMLPortParam(OrxonoxOverlay, "pickpoint", setPickPoint, getPickPoint, xmlElement, mode);
    135129        XMLPortParam(OrxonoxOverlay, "position",  setPosition,  getPosition,  xmlElement, mode);
    136130        XMLPortParam(OrxonoxOverlay, "rotation",  setRotation,  getRotation,  xmlElement, mode);
    137         XMLPortParam(OrxonoxOverlay, "correctAspect", setAspectCorrection,   getAspectCorrection,   xmlElement, mode);
     131        XMLPortParam(OrxonoxOverlay, "correctaspect", setAspectCorrection,   getAspectCorrection,   xmlElement, mode);
    138132        XMLPortParam(OrxonoxOverlay, "background",    setBackgroundMaterial, getBackgroundMaterial, xmlElement, mode);
    139133    }
     
    141135    void OrxonoxOverlay::changedName()
    142136    {
     137        SUPER(OrxonoxOverlay, changedName);
     138
    143139        OrxonoxOverlay::overlays_s.erase(this->getOldName());
    144140
Note: See TracChangeset for help on using the changeset viewer.