Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 8, 2006, 10:45:03 PM (18 years ago)
Author:
bensch
Message:

trunk: sliders get updated, as they should be

File:
1 edited

Legend:

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

    r6439 r6444  
    421421    if (likely(this->soundBuffers[WA_ACTIVATE] != NULL))
    422422      this->soundSource->play(this->soundBuffers[WA_ACTIVATE]);
     423    this->updateWidgets();
    423424    // activate
    424425    PRINTF(4)("Activating the Weapon %s\n", this->getName());
     
    482483    if (this->soundBuffers[WA_SHOOT] != NULL)
    483484      this->soundSource->play(this->soundBuffers[WA_SHOOT]);
     485    this->updateWidgets();
    484486    // fire
    485487    this->energyLoaded -= this->minCharge;
     
    526528    this->energy -= chargeSize;
    527529  }
     530
     531  this->updateWidgets();
    528532  this->reload();
    529533  this->enterState(WS_RELOADING);
Note: See TracChangeset for help on using the changeset viewer.