changeset 204 | 4c386e9c950f |
parent 201 | 135616467a0a |
child 206 | a1fe1a93ba5a |
--- a/src/Player.cc Thu Dec 04 22:33:43 2008 +0000 +++ b/src/Player.cc Thu Dec 04 22:59:13 2008 +0000 @@ -29,7 +29,7 @@ float shotspeed = 100*PHYSICS_TICK_MS; Vector shotRelativeVelocity = unitVectorAim * shotspeed; Vector shotVelocity = this->velocity + shotRelativeVelocity; - world.addProjectile(new Projectile(this->state, this->position, shotVelocity, true)); + new Projectile(this->state, this->position, shotVelocity, true); } void Player::handleMove (PlayerInput_Move input) {