diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-04-17 14:11:42 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-04-17 20:50:40 +0200 |
commit | fec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd (patch) | |
tree | 738ded5de4acf05062bdba7f6d89c909dbff30df /src/game-server | |
parent | dfdea81fa856ddf2e2ab86111086b77787930224 (diff) | |
download | manaserv-fec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd.tar.gz manaserv-fec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd.tar.bz2 manaserv-fec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd.tar.xz manaserv-fec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd.zip |
Removed useless calls to updateDerivedAttributes().
The setAttribute() already takes care of updating them.
Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/game-server')
-rw-r--r-- | src/game-server/being.cpp | 1 | ||||
-rw-r--r-- | src/game-server/monster.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index 7f3dda6f..1e54853d 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -535,7 +535,6 @@ bool Being::recalculateBaseAttribute(unsigned int attr) if (newBase != getAttribute(attr)) { setAttribute(attr, newBase); - updateDerivedAttributes(attr); return true; } LOG_DEBUG("No changes to sync for attribute '" << attr << "'."); diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 32df27a1..f7abd7b8 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -534,7 +534,6 @@ bool Monster::recalculateBaseAttribute(unsigned int attr) if (newBase != getAttribute(attr)) { setAttribute(attr, newBase); - updateDerivedAttributes(attr); return true; } LOG_DEBUG("No changes to sync for attribute '" << attr << "'."); |