Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6736 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.cc


Ignore:
Timestamp:
Jan 25, 2006, 9:28:18 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Weapons are ticked only if they are inside of a ticked OM_LIST (not by the WeaponManager anymore)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.cc

    r6728 r6736  
    538538 * tick signal for time dependent/driven stuff
    539539*/
    540 void Weapon::tickW(float dt)
     540bool Weapon::tickW(float dt)
    541541{
    542542  //printf("%s ", stateToChar(this->currentState));
     
    550550    {
    551551      this->currentState = WS_INACTIVE;
    552       return;
     552      return false;
    553553    }
    554554    else
     
    561561    }
    562562  }
    563   tick(dt);
     563  return true;
    564564}
    565565
Note: See TracChangeset for help on using the changeset viewer.