# HG changeset patch # User nireco # Date 1227878263 0 # Node ID 2877eef6c1d5bca4795fcebd15e3f1d3aab3987b # Parent 0d36aade845e0705bb18ce0013cd84060705afd0 digging diff -r 0d36aade845e -r 2877eef6c1d5 src/proto2/GameState.cc --- a/src/proto2/GameState.cc Fri Nov 28 13:11:51 2008 +0000 +++ b/src/proto2/GameState.cc Fri Nov 28 13:17:43 2008 +0000 @@ -31,6 +31,15 @@ // Apply force applyForce(Vector(fx, 0), INPUT_INTERVAL_MS); + // dig/shoot or something + if (input & INPUT_MOVE_DIG) { + // Should create Shot which destroys ground, but also should be destroyed then, + // but it doesn't. + // But this now just segfaults +// world.addObject(new Shot(state, position, true)); + + world.removeGround(position, 10); + } } void Player::debugInfo (void) {