Fix the mtrack memset

This commit is contained in:
Pasi Kallinen
2016-01-06 18:15:04 +02:00
parent c2ceb88d3c
commit 785aba242a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -325,7 +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;
memset(mtmp->mtrack, MTSZ, sizeof(coord)); memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
if (mtmp == u.usteed) if (mtmp == u.usteed)
return; /* don't place steed on the map */ return; /* don't place steed on the map */
+1 -1
View File
@@ -272,7 +272,7 @@ boolean fleemsg;
mtmp->mflee = 1; mtmp->mflee = 1;
} }
/* ignore recently-stepped spaces when made to flee */ /* ignore recently-stepped spaces when made to flee */
memset(mtmp->mtrack, MTSZ, sizeof(coord)); memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
} }
STATIC_OVL void STATIC_OVL void
+1 -1
View File
@@ -980,7 +980,7 @@ register int x, y;
} }
} }
memset(mtmp->mtrack, MTSZ, sizeof(coord)); memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
place_monster(mtmp, x, y); /* put monster down */ place_monster(mtmp, x, y); /* put monster down */
update_monster_region(mtmp); update_monster_region(mtmp);