Changeset 7847 for code/trunk/src/orxonox
- Timestamp:
- Feb 10, 2011, 5:42:29 PM (14 years ago)
- Location:
- code/trunk/src/orxonox/weaponsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/weaponsystem/Munition.cc
r7284 r7847 185 185 if (magazine->munition_ > 0 && this->bAllowMultiMunitionRemovementUnderflow_) 186 186 { 187 magazine->munition_ -= 0;187 magazine->munition_ = 0; 188 188 return true; 189 189 } -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r7163 r7847 127 127 if (this->munition_->reload(this)) 128 128 { 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(); 131 133 } 132 134 }
Note: See TracChangeset
for help on using the changeset viewer.