- Timestamp:
- Dec 25, 2009, 1:18:03 PM (15 years ago)
- Location:
- code/branches/pickup2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2
- Property svn:mergeinfo changed
-
code/branches/pickup2/src/orxonox/pickup/ModifierPickup.cc
r5947 r6412 106 106 for (it = this->additiveModifiers_.begin(); it != this->additiveModifiers_.end(); it++) 107 107 { 108 pawn->getPickups().addAdditiveModifier( (*it).first, (*it).second);108 pawn->getPickups().addAdditiveModifier(it->first, it->second); 109 109 } 110 110 111 111 for (it = this->multiplicativeModifiers_.begin(); it != this->multiplicativeModifiers_.end(); it++) 112 112 { 113 pawn->getPickups().addMultiplicativeModifier( (*it).first, (*it).second);113 pawn->getPickups().addMultiplicativeModifier(it->first, it->second); 114 114 } 115 115 … … 146 146 for (it = this->additiveModifiers_.begin(); it != this->additiveModifiers_.end(); it++) 147 147 { 148 pawn->getPickups().removeAdditiveModifier( (*it).first, (*it).second);148 pawn->getPickups().removeAdditiveModifier(it->first, it->second); 149 149 } 150 150 151 151 for (it = this->multiplicativeModifiers_.begin(); it != this->multiplicativeModifiers_.end(); it++) 152 152 { 153 pawn->getPickups().removeMultiplicativeModifier( (*it).first, (*it).second);153 pawn->getPickups().removeMultiplicativeModifier(it->first, it->second); 154 154 } 155 155 … … 186 186 std::map<ModifierType::Value, float>::const_iterator it = this->additiveModifiers_.find(type); 187 187 if (it != this->additiveModifiers_.end()) 188 return (*it).second;188 return it->second; 189 189 else 190 190 return 0.0f; … … 203 203 std::map<ModifierType::Value, float>::const_iterator it = this->multiplicativeModifiers_.find(type); 204 204 if (it != this->multiplicativeModifiers_.end()) 205 return (*it).second;205 return it->second; 206 206 else 207 207 return 1.0f;
Note: See TracChangeset
for help on using the changeset viewer.