Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 10, 2011, 5:42:29 PM (14 years ago)
Author:
landauf
Message:

fixed two bugs regarding the munition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/weaponsystem/WeaponMode.cc

    r7163 r7847  
    127127                if (this->munition_->reload(this))
    128128                {
    129                     if (!this->bParallelReload_)
    130                         reloadtime += this->munition_->getReloadTime();
     129                    if (this->bParallelReload_)
     130                        reloadtime = std::max(this->reloadTime_, this->munition_->getReloadTime());
     131                    else
     132                        reloadtime = this->reloadTime_ + this->munition_->getReloadTime();
    131133                }
    132134            }
Note: See TracChangeset for help on using the changeset viewer.