Fixed Game class documentation.

This commit is contained in:
Felix Ableitner 2013-04-04 23:54:17 +02:00
parent 48541059a0
commit c6cd8483e0
2 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

@ -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;