summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
commitdc6568962a32ddb6f231c629e7ad3373e9086b6c (patch)
tree744e9f2507c6113e1ba941a11b16e4923aa00858 /src/being/being.cpp
parent6419386c4c382753509425826ee609dd07d4ae72 (diff)
downloadmanaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.gz
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.bz2
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.xz
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.zip
remove useless conditions.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 3f40398a0..645a71dac 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1062,7 +1062,7 @@ std::string Being::getWeaponAttackAction(const ItemInfo *const weapon) const
if (!weapon)
return SpriteAction::ATTACK;
- if (serverVersion < 0 || !weapon)
+ if (serverVersion < 0)
{
return weapon->getAttackAction();
}
@@ -1085,7 +1085,7 @@ std::string Being::getAttackAction(const Attack *const attack1) const
if (!attack1)
return SpriteAction::ATTACK;
- if (serverVersion < 0 || !attack1)
+ if (serverVersion < 0)
{
return attack1->mAction;
}