diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-12 17:46:04 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-12 23:32:20 +0100 |
commit | 570603e174bd98f4fa0facf0ad1d88eddef9feea (patch) | |
tree | c0a424582e0d7728f40779f8be8b572d97cf9b87 | |
parent | 2b711a3f1358404472cd272c3d20bdbabea31d4e (diff) | |
download | manaserv-570603e174bd98f4fa0facf0ad1d88eddef9feea.tar.gz manaserv-570603e174bd98f4fa0facf0ad1d88eddef9feea.tar.bz2 manaserv-570603e174bd98f4fa0facf0ad1d88eddef9feea.tar.xz manaserv-570603e174bd98f4fa0facf0ad1d88eddef9feea.zip |
Fixed monster flawed movements and client net messages flooding.
The monsters weren't respecting the end of the stroll time
before resetting their destination, which made them never
cease changing it and flooded the clients with movement messages.
Resolves: Mana-Mantis #315.
Reviewed-by: Jaxad0127.
-rw-r--r-- | src/game-server/monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index fe23ba5f..d9083e80 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -1,6 +1,6 @@ /* * The Mana Server - * Copyright (C) 2004-2010 The Mana World Development Team + * Copyright (C) 2004-2011 The Mana World Development Team * * This file is part of The Mana Server. * @@ -315,7 +315,7 @@ void Monster::update() else { // We have no target - let's wander around - if (getPosition() == getDestination()) + if (!isTimerRunning(T_M_STROLL) && getPosition() == getDestination()) { if (!isTimerRunning(T_M_KILLSTEAL_PROTECTED)) { |