- 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/PickupCollection.cc
r6405 r6412 102 102 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 103 103 { 104 if( (*it).second && (*it).second->getOwner())105 (*it).second->dropped((*it).second->getOwner());104 if(it->second && it->second->getOwner()) 105 it->second->dropped(it->second->getOwner()); 106 106 } 107 107 this->currentUsable_ = NULL; … … 126 126 for (std::multimap<std::string, BaseItem*>::iterator it = bounds.first; it != bounds.second && it != this->items_.end(); it++) 127 127 { 128 if ( (*it).second == item)128 if (it->second == item) 129 129 { 130 130 return true; … … 178 178 for (std::multimap<std::string, BaseItem*>::iterator it = bounds.first; it != bounds.second && it != this->items_.end(); it++) 179 179 { 180 if ( (*it).second == item)180 if (it->second == item) 181 181 { 182 182 this->items_.erase(it); … … 219 219 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->additiveModifiers_.end(); it++) 220 220 { 221 v += (*it).second;221 v += it->second; 222 222 } 223 223 … … 234 234 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->additiveModifiers_.end(); it++) 235 235 { 236 if ( (*it).second == value)236 if (it->second == value) 237 237 { 238 238 this->additiveModifiers_.erase(it); … … 262 262 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->multiplicativeModifiers_.end(); it++) 263 263 { 264 v *= (*it).second;264 v *= it->second; 265 265 } 266 266 … … 277 277 for (std::multimap<ModifierType::Value, float>::iterator it = range.first; it != range.second && it != this->multiplicativeModifiers_.end(); it++) 278 278 { 279 if ( (*it).second == value)279 if (it->second == value) 280 280 { 281 281 this->multiplicativeModifiers_.erase(it); … … 337 337 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 338 338 { 339 if ( (*it).second->isA(ident))340 ret.push_back(orxonox_cast<EquipmentItem*>( (*it).second));339 if (it->second->isA(ident)) 340 ret.push_back(orxonox_cast<EquipmentItem*>(it->second)); 341 341 } 342 342 … … 354 354 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 355 355 { 356 if ( (*it).second->isA(ident))357 ret.push_back(orxonox_cast<PassiveItem*>( (*it).second));356 if (it->second->isA(ident)) 357 ret.push_back(orxonox_cast<PassiveItem*>(it->second)); 358 358 } 359 359 … … 371 371 for (std::multimap<std::string, BaseItem*>::iterator it = this->items_.begin(); it != this->items_.end(); it++) 372 372 { 373 if ( (*it).second->isA(ident))374 ret.push_back(orxonox_cast<UsableItem*>( (*it).second));373 if (it->second->isA(ident)) 374 ret.push_back(orxonox_cast<UsableItem*>(it->second)); 375 375 } 376 376
Note: See TracChangeset
for help on using the changeset viewer.