diff -r 443f6f7abcfb -r e6cfc44266af src/Player.cc --- a/src/Player.cc Tue Jan 20 23:24:04 2009 +0200 +++ b/src/Player.cc Tue Jan 20 23:30:18 2009 +0200 @@ -63,7 +63,7 @@ void Player::spawn (Vector position) { // dig hole - world.removeGround(position, PLAYER_DIG_RADIUS); + world.terrain.removeGround(position, PLAYER_DIG_RADIUS); // update position setPosition(position); @@ -108,7 +108,7 @@ Vector digPosition = pos + getDirection() * PROJECTILE_START_DISTANCE; // remove directly - world.removeGround(digPosition, radius); + world.terrain.removeGround(digPosition, radius); } void Player::handleFireWeapon (Weapon *weapon, Vector position, Vector velocity) { @@ -363,7 +363,7 @@ ); // draw a proper crosshair-box - PixelCoordinate crosshair = getCoordinate() + world.getPixelCoordinate(getDirection() * PLAYER_CROSSHAIR_DISTANCE) - camera; + PixelCoordinate crosshair = getCoordinate() + world.terrain.getPixelCoordinate(getDirection() * PLAYER_CROSSHAIR_DISTANCE) - camera; gc->draw_rect( CL_Rectf(