Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10693 in orxonox.OLD for branches/hud/src/util/hud.cc


Ignore:
Timestamp:
Jun 14, 2007, 1:20:36 PM (17 years ago)
Author:
bknecht
Message:

fixed errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/util/hud.cc

    r10685 r10693  
    183183        {
    184184                this->healthWidget = new OrxGui::GLGuiBar();
    185                 this->healthWidget->setMaximum(widget->getBarWidget()->maximum());
    186         this->healthWidget->setValue(widget->getBarWidget()->value());
    187         this->healthWidget->setParent2D(this->barSocket);
     185                dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setMaximum(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->maximum());
     186                dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setValue(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->value());
     187                this->healthWidget->setParent2D(this->barSocket);
    188188        }
    189189        else
Note: See TracChangeset for help on using the changeset viewer.