diff --git a/source/Game.cpp b/source/Game.cpp index 6914330..952a239 100644 --- a/source/Game.cpp +++ b/source/Game.cpp @@ -201,9 +201,6 @@ Game::mouseUp(const sf::Event& event) { case sf::Mouse::Left: mPlayer->releaseTrigger(); break; - case sf::Mouse::Right: - mPlayer->move(convertCoordinates(event.mouseButton.x, event.mouseButton.y)); - break; default: break; } diff --git a/source/sprites/Player.cpp b/source/sprites/Player.cpp index 0480e7b..0c0a126 100644 --- a/source/sprites/Player.cpp +++ b/source/sprites/Player.cpp @@ -44,17 +44,6 @@ Player::releaseTrigger() { Character::releaseTrigger(); } -/** - * Moves the player to a destination point. - * Disables any previous calls to Player::setDirection(). - * - * @param destination Absolute world coordinate of the destination point. - */ -void -Player::move(const sf::Vector2f& destination) { - setDestination(destination); -} - /** * Sets the movement direction. This is destined for input via keys (eg. WASD). * Disables any previous commands via Player::move(). diff --git a/source/sprites/Player.h b/source/sprites/Player.h index 4569e9e..4c432c4 100644 --- a/source/sprites/Player.h +++ b/source/sprites/Player.h @@ -36,7 +36,6 @@ public: void setCrosshairPosition(const sf::Vector2f& position); void pullTrigger(); void releaseTrigger(); - void move(const sf::Vector2f& destination); void setDirection(Direction direction, bool unset); // Private functions.