Added C++11 override keyword.

This commit is contained in:
Felix Ableitner 2013-06-25 18:12:50 +02:00
parent d06efe5257
commit b5b3ea33f8
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ public:
const sf::Vector2f& position); const sf::Vector2f& position);
private: private:
virtual void onThink(int elapsed); virtual void onThink(int elapsed) override;
}; };
#endif /* DG_ENEMY_H_ */ #endif /* DG_ENEMY_H_ */

View file

@ -41,7 +41,7 @@ public:
using Character::reload; using Character::reload;
private: private:
void onThink(int elapsed); void onThink(int elapsed) override;
private: private:
sf::Vector2f mCrosshairPosition; //< Relative position of the point to fire at (mouse cursor). sf::Vector2f mCrosshairPosition; //< Relative position of the point to fire at (mouse cursor).