From dfdea81fa856ddf2e2ab86111086b77787930224 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 17 Apr 2011 14:08:25 +0200 Subject: 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. --- src/game-server/monster.cpp | 1 - 1 file changed, 1 deletion(-) 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); } } -- cgit v1.2.3-70-g09d2