Changeset 10674 in orxonox.OLD for branches/vs-enhencements/src/world_entities/world_entity.cc
- Timestamp:
- Jun 6, 2007, 11:10:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/world_entity.cc
r10670 r10674 130 130 131 131 // Delete the obbTree 132 if( this->obbTree != NULL)132 if( this->obbTree) 133 133 delete this->obbTree; 134 134 135 if (this->healthWidget != NULL)135 if (this->healthWidget) 136 136 delete this->healthWidget; 137 138 if(this->shieldWidget) 139 delete this->shieldWidget; 140 141 if( this->electronicWidget) 142 delete this->electronicWidget; 137 143 138 144 this->unsubscribeReactions(); … … 809 815 float retShield = this->shieldMax - this->shield; 810 816 this->shield = this->shieldMax; 811 this->updateShieldWidget();817 // this->updateShieldWidget(); 812 818 return retShield; 813 819 } 814 this->updateShieldWidget();820 // this->updateShieldWidget(); 815 821 return 0.0; 816 822 } … … 827 833 { 828 834 float retShield = -this->shield; 829 this->updateShieldWidget();835 // this->updateShieldWidget(); 830 836 this->bShieldActive = false; 831 837 return retShield; 832 838 } 833 this->updateShieldWidget();839 // this->updateShieldWidget(); 834 840 return 0.0; 835 841 } … … 863 869 { 864 870 this->shieldWidget = new OrxGui::GLGuiEnergyWidgetVertical(); 865 this->update HealthWidget();871 this->updateShieldWidget(); 866 872 } 867 873 else
Note: See TracChangeset
for help on using the changeset viewer.