Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2015, 10:57:00 PM (10 years ago)
Author:
fvultier
Message:

There is now a spaceship that uses the gravity bomb. Minor documentation improvements.

File:
1 edited

Legend:

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

    r10624 r10650  
    128128        if (!this->bReloading_ && this->munition_ && this->munition_->takeMunition(this->munitionPerShot_, this))
    129129        {
    130             float reloadtime = this->reloadTime_;
     130            float tempReloadtime = this->reloadTime_;
    131131
    132132            if (this->bAutoReload_ && this->munition_->needReload(this))
     
    135135                {
    136136                    if (this->bParallelReload_)
    137                         reloadtime = std::max(this->reloadTime_, this->munition_->getReloadTime());
     137                        tempReloadtime = std::max(this->reloadTime_, this->munition_->getReloadTime());
    138138                    else
    139                         reloadtime = this->reloadTime_ + this->munition_->getReloadTime();
     139                        tempReloadtime = this->reloadTime_ + this->munition_->getReloadTime();
    140140                }
    141141            }
    142142
    143143            this->bReloading_ = true;
    144             this->reloadTimer_.setInterval(reloadtime);
     144            this->reloadTimer_.setInterval(tempReloadtime);
    145145            this->reloadTimer_.startTimer();
    146146
Note: See TracChangeset for help on using the changeset viewer.