Changeset 7462 in orxonox.OLD for trunk/src/util/game_rules.cc
- Timestamp:
- May 1, 2006, 3:21:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/game_rules.cc
r7461 r7462 47 47 BaseObject::loadParams(root); 48 48 49 PRINTF(0)("GameRules::loadParams(...) hit me\n"); 49 50 LoadParamXML(root, "MissionGoal", this, GameRules, loadMissionGoal) 50 51 .describe("an XML-Element to load the missions from"); … … 55 56 void GameRules::loadMissionGoal(const TiXmlElement* root) 56 57 { 58 PRINTF(0)("Trying to load MissionGoals\n"); 57 59 const TiXmlElement* element = root->FirstChildElement(); 58 60 while( element != NULL) … … 61 63 PRINTF(2)("Adding Mission Goal:%s\n", element->Value()); 62 64 BaseObject* created = Factory::fabricate(element); 63 if (created != NULL && created->isA(CL_GAME_RULES))65 if (created != NULL /*&& created->isA(CL_GAME_RULES)*/) 64 66 { 65 67 MissionGoal* mg = dynamic_cast<MissionGoal*>(created);
Note: See TracChangeset
for help on using the changeset viewer.