Changeset 6150 for code/branches/presentation2/src/modules/weapons
- Timestamp:
- Nov 25, 2009, 4:52:37 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/ingamemenu (added) merged: 6003,6018-6020,6022-6023 /code/branches/menu (added) merged: 5941,5944,5952,6024,6032,6036,6047-6049,6051,6145-6146,6148
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/modules/weapons/weaponmodes/HsW01.cc
r6108 r6150 40 40 #include "weaponsystem/WeaponSystem.h" 41 41 #include "worldentities/WorldEntity.h" 42 #include "worldentities/pawns/Pawn.h" 42 43 43 44 namespace orxonox … … 104 105 void HsW01::shot() 105 106 { 107 assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() ); 106 108 Projectile* projectile = new Projectile(this); 107 109 Model* model = new Model(projectile); … … 111 113 model->setScale(5); 112 114 113 this->computeMuzzleParameters( );115 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 114 116 projectile->setOrientation(this->getMuzzleOrientation()); 115 117 projectile->setPosition(this->getMuzzlePosition());
Note: See TracChangeset
for help on using the changeset viewer.