Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7461 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
May 1, 2006, 1:47:53 PM (19 years ago)
Author:
patrick
Message:

orxonox: the mission goal framework is nearly completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r7460 r7461  
    379379  while( element != NULL)
    380380  {
    381     PRINTF(4)("============ GameRules ==");
    382     PRINTF(4)("creating %s\n", element->Value());
     381    PRINTF(2)("============ GameRules ==\n");
     382    PRINTF(2)("creating %s\n", element->Value());
    383383    BaseObject* created = Factory::fabricate(element);
    384     if (created != NULL /*&& created->isA(CL_GAME_RULES)*/)
     384    if (created != NULL && created->isA(CL_GAME_RULES))
    385385    {
    386386      this->gameRule = dynamic_cast<GameRules*>(created);
    387387      State::setGameRules(this->gameRule);
     388      // if there is a valid game rule loaded, break because it is not thought to load multiple game rules
     389      break;
    388390    }
    389391    else
Note: See TracChangeset for help on using the changeset viewer.