Changeset 10650 for code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
- Timestamp:
- Oct 12, 2015, 10:57:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r10624 r10650 128 128 if (!this->bReloading_ && this->munition_ && this->munition_->takeMunition(this->munitionPerShot_, this)) 129 129 { 130 float reloadtime = this->reloadTime_;130 float tempReloadtime = this->reloadTime_; 131 131 132 132 if (this->bAutoReload_ && this->munition_->needReload(this)) … … 135 135 { 136 136 if (this->bParallelReload_) 137 reloadtime = std::max(this->reloadTime_, this->munition_->getReloadTime());137 tempReloadtime = std::max(this->reloadTime_, this->munition_->getReloadTime()); 138 138 else 139 reloadtime = this->reloadTime_ + this->munition_->getReloadTime();139 tempReloadtime = this->reloadTime_ + this->munition_->getReloadTime(); 140 140 } 141 141 } 142 142 143 143 this->bReloading_ = true; 144 this->reloadTimer_.setInterval( reloadtime);144 this->reloadTimer_.setInterval(tempReloadtime); 145 145 this->reloadTimer_.startTimer(); 146 146
Note: See TracChangeset
for help on using the changeset viewer.