aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-04-11 16:22:25 +0200
committerclick <none@none>2010-04-11 16:22:25 +0200
commita2a2da13427c2ef94f7c730ff64f5c547e01aa3d (patch)
treed8740d3bd240e5660f47afb9a5e1268a589802d8
parentfcb2f44830b050667b31d22c1f5ad823ebea2de8 (diff)
* Force .npc move to move the creature and make sure it respawns from deadstate
(Removes .die/.respawn -requirement on move) Patch by antihrists Fixes issue #121 --HG-- branch : trunk
-rw-r--r--src/game/Level2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index 3ca0787c666..a17c8b7fb0c 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -1160,7 +1160,7 @@ bool ChatHandler::HandleNpcAddMoveCommand(const char* args)
if (pCreature->isAlive()) // dead creature will reset movement generator at respawn
{
pCreature->setDeathState(JUST_DIED);
- pCreature->Respawn();
+ pCreature->Respawn(true);
}
pCreature->SaveToDB();
}