Changeset 7464 in orxonox.OLD for trunk/src/util/mission_goal.cc
- Timestamp:
- May 1, 2006, 4:52:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/mission_goal.cc
r7463 r7464 17 17 18 18 #include "mission_goal.h" 19 #include "game_rules.h" 19 20 21 #include "state.h" 20 22 #include "util/loading/load_param.h" 21 23 … … 30 32 { 31 33 this->setClassID(CL_MISSION_GOAL, "MissionGoal"); 34 35 this->missionState = MS_PASSIVE; 36 // add the mission to the current game rule 37 GameRules* gr = State::getGameRules(); 38 if( gr) 39 gr->addMissionGoal(this); 32 40 33 41 if( root != NULL)
Note: See TracChangeset
for help on using the changeset viewer.