Skip to content

Commit f472736

Browse files
committed
Fixes exult#663
Already slain NPCs will not teleport (especially after the banes are released, this would leave duplicate bodies of already dead NPCs)
1 parent 9fdeb4a commit f472736

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

actors.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5543,6 +5543,10 @@ void Npc_actor::switched_chunks(
55435543
*/
55445544

55455545
void Npc_actor::move(int newtx, int newty, int newlift, int newmap) {
5546+
// prevent teleporting if dead
5547+
if (is_dead()) {
5548+
return;
5549+
}
55465550
// Store old chunk list.
55475551
Map_chunk* olist = get_chunk();
55485552
// Move it.

0 commit comments

Comments
 (0)