From 7c55643da4c812e1ae97b746a1d44cf68c27cfea Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 29 Mar 2013 18:42:56 +0100 Subject: [PATCH] Removed unneeded variable. --- source/abstract/Character.cpp | 3 +-- source/abstract/Character.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/abstract/Character.cpp b/source/abstract/Character.cpp index e89737f..c6effce 100644 --- a/source/abstract/Character.cpp +++ b/source/abstract/Character.cpp @@ -32,8 +32,7 @@ Character::Character(World& world, const Data& data, const Yaml& config) : mMaxHealth(config.get(KEY_HEALTH, DEFAULT_HEALTH)), mCurrentHealth(mMaxHealth), mMovementSpeed(config.get(KEY_SPEED, DEFAULT_SPEED)), - mWeapon(new Weapon(world, *this, Yaml(config.get(KEY_WEAPON, DEFAULT_WEAPON)))), - mStartPathfinding(false) { + mWeapon(new Weapon(world, *this, Yaml(config.get(KEY_WEAPON, DEFAULT_WEAPON)))) { } Character::~Character() { diff --git a/source/abstract/Character.h b/source/abstract/Character.h index 7b73e64..6dc9a1d 100644 --- a/source/abstract/Character.h +++ b/source/abstract/Character.h @@ -54,7 +54,6 @@ private: const float mMovementSpeed; std::unique_ptr mWeapon; std::vector mPath; //< Contains nodes to reach a set destination. - bool mStartPathfinding; //< True if a movement destination was just set. }; #endif /* DG_ACTOR_H_ */