Changeset 10516 in orxonox.OLD for trunk/src/world_entities/weapons/medium_blaster.cc
- Timestamp:
- Jan 30, 2007, 9:17:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/medium_blaster.cc
r10415 r10516 10 10 11 11 #include "loading/fast_factory.h" 12 13 #include "elements/glgui_energywidgetvertical.h" 12 14 13 15 // … … 138 140 } 139 141 142 140 143 /** 141 144 * this activates the weapon … … 158 161 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 159 162 160 static_cast<StaticModel*>(this->getModel())->draw( 2);163 static_cast<StaticModel*>(this->getModel())->draw(0); 161 164 162 165 glPushMatrix(); … … 167 170 glPushMatrix(); 168 171 glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z); 169 static_cast<StaticModel*>(this->getModel())->draw( 0);172 static_cast<StaticModel*>(this->getModel())->draw(2); 170 173 glPopMatrix(); 171 174 172 175 glPopMatrix(); 173 176 } 177 178 void MediumBlaster::tick(float dt) 179 { 180 if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized) 181 { 182 this->energyWidget->setDisplayedImage("textures/gui/gui_medium_bold.png"); 183 this->setEnergyWidgetInitialized(true); 184 } 185 }
Note: See TracChangeset
for help on using the changeset viewer.