Move mtrack push and clear to separate functions

This commit is contained in:
Pasi Kallinen
2022-07-16 18:43:22 +03:00
parent fcbeed21cc
commit 94c1e94d20
7 changed files with 28 additions and 17 deletions

View File

@@ -871,7 +871,7 @@ clone_mon(struct monst *mon,
/* ms->isminion handled below */
/* clone shouldn't be reluctant to move on spots 'parent' just moved on */
(void) memset((genericptr_t) m2->mtrack, 0, sizeof m2->mtrack);
mon_track_clear(m2);
place_monster(m2, m2->mx, m2->my);
if (emits_light(m2->data))