Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2008, 5:52:13 PM (16 years ago)
Author:
polakma
Message:

"Munition" had no Factory, so it didn't work on Windows (why did it work on Linux?). Delete keybindings.ini once to altfire function correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/Munition.cc

    r2391 r2410  
    3737namespace orxonox
    3838{
     39    CreateFactory(Munition);
     40
    3941    Munition::Munition(BaseObject* creator) : BaseObject(creator)
    4042    {
     
    4749
    4850    unsigned int Munition::bullets()
    49     { 
     51    {
    5052        if (this->bullets_ > 0)
    5153            return bullets_;
     
    5557
    5658    unsigned int Munition::magazines()
    57     { 
     59    {
    5860        if (this->magazines_ > 0)
    5961            return magazines_;
     
    106108        this->bullets_ = this->maxBullets_;
    107109    }
    108    
     110
    109111    void Munition::fillMagazines()
    110112    {
    111113        this->magazines_ = this->maxMagazines_;
    112114    }
    113    
     115
    114116    void Munition::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    115117    {
Note: See TracChangeset for help on using the changeset viewer.