Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

beautification fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.