summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-17 14:11:42 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-17 20:50:40 +0200
commitfec5bce5b6485aaee7cb31cb74cbb06aef2a8ebd (patch)
tree738ded5de4acf05062bdba7f6d89c909dbff30df /src/game-server/monster.cpp
parentdfdea81fa856ddf2e2ab86111086b77787930224 (diff)
downloadmanaserv-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/monster.cpp')
-rw-r--r--src/game-server/monster.cpp1
1 files changed, 0 insertions, 1 deletions
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 << "'.");