Make (level) teleporting clear monster movement tracking

This commit is contained in:
Pasi Kallinen
2016-01-05 12:32:18 +02:00
parent 861afbb1c9
commit e80a9e0daf
2 changed files with 2 additions and 2 deletions

View File

@@ -325,8 +325,7 @@ boolean with_you;
xyflags = mtmp->mtrack[0].y;
xlocale = mtmp->mtrack[1].x;
ylocale = mtmp->mtrack[1].y;
mtmp->mtrack[0].x = mtmp->mtrack[0].y = 0;
mtmp->mtrack[1].x = mtmp->mtrack[1].y = 0;
memset(mtmp->mtrack, MTSZ, sizeof(coord));
if (mtmp == u.usteed)
return; /* don't place steed on the map */

View File

@@ -980,6 +980,7 @@ register int x, y;
}
}
memset(mtmp->mtrack, MTSZ, sizeof(coord));
place_monster(mtmp, x, y); /* put monster down */
update_monster_region(mtmp);