Fixed Game class documentation.
This commit is contained in:
parent
48541059a0
commit
c6cd8483e0
2 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,8 @@ class Player;
|
|||
class World;
|
||||
|
||||
/*
|
||||
* Use vertex for tiles.
|
||||
* High level game managing, including game loop, input, high
|
||||
* level rendering, and general class handling
|
||||
*/
|
||||
class Game : private sf::NonCopyable {
|
||||
public:
|
||||
|
|
|
@ -60,7 +60,7 @@ Player::setDirection(Direction direction, bool unset) {
|
|||
|
||||
// Convert directions into a vector.
|
||||
sf::Vector2f dirVec(0, 0);
|
||||
if (mDirection & Direction::RIGHT) {
|
||||
if (mDirection & Direction::RIGHT)
|
||||
dirVec.x += 1.0f;
|
||||
if (mDirection & Direction::LEFT)
|
||||
dirVec.x += - 1.0f;
|
||||
|
|
Reference in a new issue