Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2007, 5:06:55 AM (17 years ago)
Author:
landauf
Message:

put all SetConfigValue macro calls into the setConfigValues function (this is needed to allow changes of the config values at runtime)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/SpaceShip.cc

    r670 r697  
    4545        RegisterObject(SpaceShip);
    4646
    47         SetConfigValue(bInvertYAxis_, false);
    48         SetConfigValue(reloadTime_, 0.125);
     47        this->setConfigValues();
    4948
    5049        this->setMouseEventCallback_ = false;
     
    123122    }
    124123
     124    void SpaceShip::setConfigValues()
     125    {
     126        SetConfigValue(bInvertYAxis_, false);
     127        SetConfigValue(reloadTime_, 0.125);
     128    }
     129
    125130    void SpaceShip::loadParams(TiXmlElement* xmlElem)
    126131    {
     
    363368        if (this->bLMousePressed_ && this->timeToReload_ <= 0)
    364369        {
    365             // FIXME, unused var; try recycling of projectiles
    366             Projectile* proj = new Projectile(this);
     370            new Projectile(this);
    367371            this->timeToReload_ = this->reloadTime_;
    368372        }
Note: See TracChangeset for help on using the changeset viewer.