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; 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 */

View File

@@ -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);