Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8901 in orxonox.OLD


Ignore:
Timestamp:
Jun 29, 2006, 1:37:43 AM (18 years ago)
Author:
patrick
Message:

doors work fine now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/door.cc

    r8894 r8901  
    3939{
    4040 // begin, end, fps, interruptable
    41   {   0,  15,  9,  0 },   //!< OPEN
    42   {   15, 30,  9,  0 }    //!< CLOSE
     41  {   0,  15,  30,  0 },   //!< OPEN
     42  {   15, 29,  30,  0 }    //!< CLOSE
    4343};
    4444
     
    6565  this->loadMD2Texture("maps/doors.jpg");
    6666  this->loadModel("models/creatures/doors.md2", this->scale);
     67
    6768  this->setAnimation(DOOR_CLOSE, MD2_ANIM_ONCE);
    6869}
     
    114115    ((InteractiveModel*)this->getModel(0))->tick(time);
    115116
    116   if( this->checkOpen() && !this->bOpen)
    117     this->open();
    118   else if( bOpen)
    119     this->close();
     117  if( !this->bOpen)
     118  {
     119    if( this->checkOpen())
     120    {
     121      this->open();
     122    }
     123  }
     124  else
     125  {
     126    if( !this->checkOpen())
     127    {
     128      this->close();
     129    }
     130  }
    120131
    121132}
Note: See TracChangeset for help on using the changeset viewer.