Changeset 8901 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 29, 2006, 1:37:43 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/door.cc
r8894 r8901 39 39 { 40 40 // begin, end, fps, interruptable 41 { 0, 15, 9, 0 }, //!< OPEN42 { 15, 30, 9, 0 } //!< CLOSE41 { 0, 15, 30, 0 }, //!< OPEN 42 { 15, 29, 30, 0 } //!< CLOSE 43 43 }; 44 44 … … 65 65 this->loadMD2Texture("maps/doors.jpg"); 66 66 this->loadModel("models/creatures/doors.md2", this->scale); 67 67 68 this->setAnimation(DOOR_CLOSE, MD2_ANIM_ONCE); 68 69 } … … 114 115 ((InteractiveModel*)this->getModel(0))->tick(time); 115 116 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 } 120 131 121 132 }
Note: See TracChangeset
for help on using the changeset viewer.