Changeset 6417 for code/trunk/src/orxonox/pickup/PickupCollection.cc
- Timestamp:
- Dec 25, 2009, 10:23:58 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/pickup/PickupCollection.cc
r5781 r6417 100 100 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 101 101 { 102 if( (*it).second && (*it).second->getOwner())103 (*it).second->dropped((*it).second->getOwner());102 if(it->second && it->second->getOwner()) 103 it->second->dropped(it->second->getOwner()); 104 104 } 105 105 this->currentUsable_ = NULL; … … 124 124 for (std::multimap<std::string, BaseItem*>::iterator it = bounds.first; it != bounds.second && it != this->items_.end(); it++) 125 125 { 126 if ( (*it).second == item)126 if (it->second == item) 127 127 { 128 128 return true; … … 176 176 for (std::multimap<std::string, BaseItem*>::iterator it = bounds.first; it != bounds.second && it != this->items_.end(); it++) 177 177 { 178 if ( (*it).second == item)178 if (it->second == item) 179 179 { 180 180 this->items_.erase(it); … … 217 217 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->additiveModifiers_.end(); it++) 218 218 { 219 v += (*it).second;219 v += it->second; 220 220 } 221 221 … … 232 232 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->additiveModifiers_.end(); it++) 233 233 { 234 if ( (*it).second == value)234 if (it->second == value) 235 235 { 236 236 this->additiveModifiers_.erase(it); … … 260 260 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->multiplicativeModifiers_.end(); it++) 261 261 { 262 v *= (*it).second;262 v *= it->second; 263 263 } 264 264 … … 275 275 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->multiplicativeModifiers_.end(); it++) 276 276 { 277 if ( (*it).second == value)277 if (it->second == value) 278 278 { 279 279 this->multiplicativeModifiers_.erase(it); … … 335 335 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 336 336 { 337 if ( (*it).second->isA(ident))338 ret.push_back(orxonox_cast<EquipmentItem*>( (*it).second));337 if (it->second->isA(ident)) 338 ret.push_back(orxonox_cast<EquipmentItem*>(it->second)); 339 339 } 340 340 … … 352 352 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 353 353 { 354 if ( (*it).second->isA(ident))355 ret.push_back(orxonox_cast<PassiveItem*>( (*it).second));354 if (it->second->isA(ident)) 355 ret.push_back(orxonox_cast<PassiveItem*>(it->second)); 356 356 } 357 357 … … 369 369 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 370 370 { 371 if ( (*it).second->isA(ident))372 ret.push_back(orxonox_cast<UsableItem*>( (*it).second));371 if (it->second->isA(ident)) 372 ret.push_back(orxonox_cast<UsableItem*>(it->second)); 373 373 } 374 374
Note: See TracChangeset
for help on using the changeset viewer.