diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-18 23:07:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-18 23:07:40 +0300 |
commit | dc6568962a32ddb6f231c629e7ad3373e9086b6c (patch) | |
tree | 744e9f2507c6113e1ba941a11b16e4923aa00858 /src/being/being.cpp | |
parent | 6419386c4c382753509425826ee609dd07d4ae72 (diff) | |
download | plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.gz plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.bz2 plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.xz plus-dc6568962a32ddb6f231c629e7ad3373e9086b6c.zip |
remove useless conditions.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 4 |
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; } |