- Timestamp:
- Apr 9, 2009, 3:18:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2893 r2912 28 28 29 29 #include "OrxonoxStableHeaders.h" 30 30 #include "LaserGun.h" 31 31 32 32 #include "core/CoreIncludes.h" 33 #include "core/XMLPort.h"34 #include "util/Debug.h"35 33 36 #include "LaserGun.h" 37 34 #include "objects/weaponSystem/Munition.h" 35 #include "objects/weaponSystem/projectiles/ParticleProjectile.h" 36 #include "objects/weaponSystem/WeaponSystem.h" 38 37 39 38 namespace orxonox … … 79 78 projectile->setPosition(this->getWorldPosition()); 80 79 projectile->setVelocity(this->getWorldOrientation() * WorldEntity::FRONT * this->speed_); 81 projectile->setOwner(this->get ParentWeaponSystem()->getParentPawn());80 projectile->setOwner(this->getWeaponSystem()->getPawn()); 82 81 } 83 82 }
Note: See TracChangeset
for help on using the changeset viewer.