From bb8c7486fbbdae5bfbcea5e4dd7fd3d81fbb2281 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 8 Dec 2008 20:23:38 -0600 Subject: *Try to fix the bug that players cannot move after releasing. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3