aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-08 20:23:38 -0600
committermegamage <none@none>2008-12-08 20:23:38 -0600
commitbb8c7486fbbdae5bfbcea5e4dd7fd3d81fbb2281 (patch)
tree3fd59ae9b9627086455923202163efec34bfa60d
parent9632543dab66abdf6d9f2184c4f9a0a766b961c1 (diff)
*Try to fix the bug that players cannot move after releasing.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 91816d33c25..40ed45d027b 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -10798,7 +10798,7 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
- if(!isAlive())
+ if(getDeathState() == JUST_DIED)
val = 0;
else
{