Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10714


Ignore:
Timestamp:
Oct 26, 2015, 11:36:27 PM (9 years ago)
Author:
fvultier
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/orxonox/weaponsystem/Munition.cc

    r10713 r10714  
    362362
    363363            return true;
    364 
    365 
    366 
    367 
    368 
    369             /*
    370             // Share the munition equally to the current magazines
    371             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;*/
    391364        }
    392365    }
Note: See TracChangeset for help on using the changeset viewer.