Changeset 3881 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc
- Timestamp:
- Apr 18, 2005, 8:05:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_gun.cc
r3855 r3881 40 40 creates a new weapon 41 41 */ 42 TestGun::TestGun (PNode* parent, Vector* coordinate, Quaternion*direction, int leftRight)42 TestGun::TestGun (PNode* parent, const Vector& coordinate, const Quaternion& direction, int leftRight) 43 43 : Weapon (parent, coordinate, direction) 44 44 { … … 127 127 void TestGun::fire() 128 128 { 129 if( this->localTime < this->idleTime)129 if( !this->hasWeaponIdleTimeElapsed()) 130 130 { 131 131 this->weaponIdle(); … … 201 201 this->getAbsCoor ().y, 202 202 this->getAbsCoor ().z); 203 203 204 204 this->getAbsDir ().matrix (matrix); 205 205 glMultMatrixf((float*)matrix); … … 228 228 this->dummy1->getAbsCoor ().y, 229 229 this->dummy1->getAbsCoor ().z); 230 230 231 231 this->dummy1->getAbsDir ().matrix (matrix); 232 232 glMultMatrixf((float*)matrix);
Note: See TracChangeset
for help on using the changeset viewer.