Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2015, 11:24:32 PM (9 years ago)
Author:
landauf
Message:

level should be it's own level (the same pattern that is already used for Namespace, Scene, and Gametype)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/orxonox/Level.cc

    r10562 r10563  
    4949        RegisterObject(Level);
    5050
     51        this->setLevel(StrongPtr<Level>(this, false));
    5152
    5253        this->registerVariables();
     
    121122
    122123        Gametype* rootgametype = orxonox_cast<Gametype*>(identifier->fabricate(this));
     124        rootgametype->setLevel(NULL); // avoid circular references
    123125        this->setGametype(rootgametype);
    124126
     
    134136    {
    135137        this->objects_.push_back(object);
    136         object->setLevel(this);
    137138    }
    138139
Note: See TracChangeset for help on using the changeset viewer.