Fixed warnings.
This commit is contained in:
parent
a2de030cbc
commit
027006c966
2 changed files with 2 additions and 1 deletions
|
@ -160,10 +160,12 @@ Game::mouseDown(const sf::Event& event) {
|
||||||
case sf::Mouse::Right:
|
case sf::Mouse::Right:
|
||||||
mPlayer->setDestination(convertCoordinates(event.mouseButton.x,
|
mPlayer->setDestination(convertCoordinates(event.mouseButton.x,
|
||||||
event.mouseButton.y));
|
event.mouseButton.y));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles mouse key up events.
|
* Handles mouse key up events.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -38,7 +38,6 @@ private:
|
||||||
* Redundant data as portals are saved twice.
|
* Redundant data as portals are saved twice.
|
||||||
*/
|
*/
|
||||||
struct Pathfinder::Portal {
|
struct Pathfinder::Portal {
|
||||||
Portal() = default;
|
|
||||||
bool operator==(const Portal& p);
|
bool operator==(const Portal& p);
|
||||||
sf::Vector2i start;
|
sf::Vector2i start;
|
||||||
sf::Vector2i end;
|
sf::Vector2i end;
|
||||||
|
|
Reference in a new issue