Changeset 1576 for code/trunk/src/orxonox/objects
- Timestamp:
- Jun 9, 2008, 3:42:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Projectile.cc
r1563 r1576 75 75 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second"); 76 76 77 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 77 if(this->owner_) 78 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 78 79 } 79 80
Note: See TracChangeset
for help on using the changeset viewer.