Changeset 10714 for code/branches/fabienHS15/src/orxonox/weaponsystem
- Timestamp:
- Oct 26, 2015, 11:36:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.cc
r10713 r10714 362 362 363 363 return true; 364 365 366 367 368 369 /*370 // Share the munition equally to the current magazines371 while (amount > 0)372 {373 bool change = false;374 for (std::map<WeaponMode*, Magazine*>::iterator it = this->currentMagazines_.begin(); it != this->currentMagazines_.end(); ++it)375 {376 // Add munition if the magazine isn't full (but only to loaded magazines)377 if (amount > 0 && it->second->munition_ < this->maxMunitionPerMagazine_ && it->second->bLoaded_)378 {379 it->second->munition_++;380 amount--;381 change = true;382 }383 }384 385 // If there was no change in a loop, all magazines are full (or locked due to loading)386 if (!change)387 break;388 }389 390 return true;*/391 364 } 392 365 }
Note: See TracChangeset
for help on using the changeset viewer.