Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10548 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 31, 2007, 5:58:30 AM (18 years ago)
Author:
nicolasc
Message:

beautification fixes

Location:
trunk/src/world_entities/weapons
Files:
2 edited

Legend:

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

    r10539 r10548  
    231231                this->getAbsCoor ().y,
    232232                this->getAbsCoor ().z);
     233    Vector tmpRot = this->getAbsDir().getSpacialAxis();
     234    glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    233235
    234236  if (this->leftRight == W_LEFT)
  • trunk/src/world_entities/weapons/medium_blaster.cc

    r10539 r10548  
    159159  glMatrixMode(GL_MODELVIEW);
    160160  glPushMatrix();
    161   glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    162 
    163   static_cast<StaticModel*>(this->getModel())->draw(0);
     161    glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     162    Vector tmpRot = this->getAbsDir().getSpacialAxis();
     163    glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
     164    static_cast<StaticModel*>(this->getModel())->draw(0);
    164165
    165166  glPushMatrix();
Note: See TracChangeset for help on using the changeset viewer.