Make (level) teleporting clear monster movement tracking
This commit is contained in:
@@ -325,8 +325,7 @@ boolean with_you;
|
|||||||
xyflags = mtmp->mtrack[0].y;
|
xyflags = mtmp->mtrack[0].y;
|
||||||
xlocale = mtmp->mtrack[1].x;
|
xlocale = mtmp->mtrack[1].x;
|
||||||
ylocale = mtmp->mtrack[1].y;
|
ylocale = mtmp->mtrack[1].y;
|
||||||
mtmp->mtrack[0].x = mtmp->mtrack[0].y = 0;
|
memset(mtmp->mtrack, MTSZ, sizeof(coord));
|
||||||
mtmp->mtrack[1].x = mtmp->mtrack[1].y = 0;
|
|
||||||
|
|
||||||
if (mtmp == u.usteed)
|
if (mtmp == u.usteed)
|
||||||
return; /* don't place steed on the map */
|
return; /* don't place steed on the map */
|
||||||
|
|||||||
@@ -980,6 +980,7 @@ register int x, y;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(mtmp->mtrack, MTSZ, sizeof(coord));
|
||||||
place_monster(mtmp, x, y); /* put monster down */
|
place_monster(mtmp, x, y); /* put monster down */
|
||||||
update_monster_region(mtmp);
|
update_monster_region(mtmp);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user