Changeset 2093 for code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
- Timestamp:
- Nov 1, 2008, 9:03:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
r2092 r2093 132 132 std::set<Player*>::const_iterator it = this->players_.find((Player*)(void*)player); 133 133 if (it != this->players_.end()) 134 135 136 137 138 139 140 134 { 135 return this->status_; 136 } 137 else 138 { 139 return questStatus::inactive; 140 } 141 141 142 142 } … … 145 145 @brief 146 146 Sets the status for a specific player. 147 147 But be careful wit this one, the status will just be set without checking for its validity. You have to know what you're doing. 148 148 @param player 149 149 The player. … … 158 158 { 159 159 return false; 160 160 } 161 161 162 162 std::set<Player*>::const_iterator it = this->players_.find(player); 163 163 if (it == this->players_.end()) //!< Player is not yet in the list. 164 165 166 167 168 164 { 165 this->players_.insert(player); 166 } 167 this->status_ = status; 168 return true; 169 169 } 170 170
Note: See TracChangeset
for help on using the changeset viewer.