Added C++11 override keyword.
This commit is contained in:
parent
d06efe5257
commit
b5b3ea33f8
2 changed files with 2 additions and 2 deletions
|
@ -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_ */
|
||||||
|
|
|
@ -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).
|
||||||
|
|
Reference in a new issue