summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-17 14:08:25 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-17 20:50:40 +0200
commitdfdea81fa856ddf2e2ab86111086b77787930224 (patch)
treed62cbd71a8859f6ba03f81f891623870b60f20ff /src/game-server
parent5ab506e215511a3ac26cc0391527ad30b65107ff (diff)
downloadmanaserv-dfdea81fa856ddf2e2ab86111086b77787930224.tar.gz
manaserv-dfdea81fa856ddf2e2ab86111086b77787930224.tar.bz2
manaserv-dfdea81fa856ddf2e2ab86111086b77787930224.tar.xz
manaserv-dfdea81fa856ddf2e2ab86111086b77787930224.zip
Removed an unecessary call to attribute recalculation for monsters.
The only need to call this function was to trigger derived attributes recalculation as the base attribute recalulation does nothung for monsters atm. And this is useless as setAttribute() already triggers derived attributes recalulation. Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/game-server')
-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 f2914da7..32df27a1 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -104,7 +104,6 @@ Monster::Monster(MonsterClass *specy):
mutation ?
attr * (100 + (rand()%(mutation << 1)) - mutation) / 100.0 :
attr);
- recalculateBaseAttribute(it2->first);
}
}