Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 2, 2007, 3:57:53 PM (17 years ago)
Author:
nicolasc
Message:

some minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/weapon.cc

    r10771 r10772  
    1212### File Specific
    1313   main-programmer: Patrick Boenzli
    14    co-programmer: Benjamin Grauer
     14   co-programmer: Benjamin Grauer, Nicolas Schlumberger
    1515
    1616   2005-07-15: Benjamin Grauer: restructurating the entire Class
     
    6363    delete this->soundSource;
    6464
     65//!< PNode must not be deleted, gc takes care of.
    6566//   for (int i = 0; i < MAX_BARRELS; i++)
    6667//   {
     
    132133
    133134  this->barrels = 1;  // just to have an initial value
    134   this->segs = 1;
    135   this->activeBarrel = 0;
     135  this->segs = 0;     // by default there are no movable parts
     136  this->activeBarrel = 0; //array wize, 0 means first barrel
    136137
    137138  this->preferedSide = -1;
     
    163164  this->maxCharge = 1.0;                           //< The maximum charge is also one unit.
    164165
    165   this->energy = 10.0;                               //< The secondary Buffer (before we have to reload)
     166  this->energy = 10.0;                             //< The secondary Buffer (before we have to reload)
    166167  this->energyMax = 10.0;                          //< How much energy can be carried
    167168  this->capability = WTYPE_ALL;                    //< The Weapon has all capabilities @see W_Capability.
    168169
    169170  this->energyWidget = NULL;
    170   isEnergyWidgetInitialized = false;
     171  isEnergyWidgetInitialized = false;               // FIXME, needs to be cleaned
    171172
    172173  // set this object to be synchronized over network
Note: See TracChangeset for help on using the changeset viewer.