Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2015, 2:02:01 PM (9 years ago)
Author:
landauf
Message:

create the scoreboard directly with the correct gametype. this prevents that we have to re-set the gametype (and pass it to sub-overlays).

File:
1 edited

Legend:

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

    r10573 r10575  
    122122
    123123        Gametype* rootgametype = orxonox_cast<Gametype*>(identifier->fabricate(this));
     124
    124125        rootgametype->setLevel(NULL); // avoid circular references
    125126        this->setGametype(rootgametype);
     127        rootgametype->init(); // call init() AFTER the gametype was set
    126128
    127129        if (LevelManager::exists())
Note: See TracChangeset for help on using the changeset viewer.