# HG changeset patch # User saiam # Date 1228690126 0 # Node ID d17126e20de7f566439d7887db6d22c21811e301 # Parent 9024e805b4e23159be0749c7f24f187ad82c6e56 Changed dig to use removeGround again. The problem with the digging is the fact that input isn't handled properly. diff -r 9024e805b4e2 -r d17126e20de7 src/Player.cc --- a/src/Player.cc Sun Dec 07 22:47:24 2008 +0000 +++ b/src/Player.cc Sun Dec 07 22:48:46 2008 +0000 @@ -43,9 +43,10 @@ void Player::handleDig (Vector position, float radius) { // XXX: clean this bit up // calculate new position and velocity - Vector shotPosition = position + getDirection() * PROJECTILE_START_DISTANCE; + Vector digPosition = position + getDirection() * PROJECTILE_START_DISTANCE; + world.removeGround(digPosition, radius); // execute - new Projectile(state, shotPosition, Vector(0, 0), false, radius, 1); + // new Projectile(state, shotPosition, Vector(0, 0), false, radius, 0); } void Player::handleCreateProjectile (Weapon *weapon, Vector position, Vector velocity) {