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 | |
| parent | dfdea81fa856ddf2e2ab86111086b77787930224 (diff) | |
Removed useless calls to updateDerivedAttributes().
The setAttribute() already takes care of updating them.
Reviewed-by: Jaxad0127.
| -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 7f3dda6..1e54853 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 32df27a..f7abd7b 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 << "'."); |
