Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2007, 11:10:08 PM (17 years ago)
Author:
nicolasc
Message:

this and that
might be buggy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/world_entity.cc

    r10670 r10674  
    130130
    131131  // Delete the obbTree
    132   if( this->obbTree != NULL)
     132  if( this->obbTree)
    133133    delete this->obbTree;
    134134
    135   if (this->healthWidget != NULL)
     135  if (this->healthWidget)
    136136    delete this->healthWidget;
     137
     138  if(this->shieldWidget)
     139    delete this->shieldWidget;
     140
     141  if( this->electronicWidget)
     142    delete this->electronicWidget;
    137143
    138144  this->unsubscribeReactions();
     
    809815    float retShield = this->shieldMax - this->shield;
    810816    this->shield = this->shieldMax;
    811     this->updateShieldWidget();
     817//     this->updateShieldWidget();
    812818    return retShield;
    813819  }
    814   this->updateShieldWidget();
     820//   this->updateShieldWidget();
    815821  return 0.0;
    816822}
     
    827833  {
    828834    float retShield = -this->shield;
    829     this->updateShieldWidget();
     835//     this->updateShieldWidget();
    830836    this->bShieldActive = false;
    831837    return retShield;
    832838  }
    833   this->updateShieldWidget();
     839//   this->updateShieldWidget();
    834840  return 0.0;
    835841}
     
    863869  {
    864870    this->shieldWidget = new OrxGui::GLGuiEnergyWidgetVertical();
    865     this->updateHealthWidget();
     871    this->updateShieldWidget();
    866872  }
    867873  else
Note: See TracChangeset for help on using the changeset viewer.