Prevent a possible impossible when guard relocated a monster

This commit is contained in:
Pasi Kallinen
2019-09-06 22:09:03 +03:00
parent 8cf70f7771
commit 6426e61860
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -136,6 +136,7 @@ have 'O' update persistent inventory window if 'implicit_uncursed',
when spellcasting monster aimed at wrong spot due to not being able to see when spellcasting monster aimed at wrong spot due to not being able to see
invisible hero, feedback could be erroneous if hero could see self invisible hero, feedback could be erroneous if hero could see self
[messages used 'if (Invisible)' test where 'if (Invis)' was meant] [messages used 'if (Invisible)' test where 'if (Invis)' was meant]
prevent impossible when guard tries to relocate a monster on a full level
Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository
+2 -1
View File
@@ -79,7 +79,8 @@ boolean forceshow;
} else if (!in_fcorridor(grd, u.ux, u.uy)) { } else if (!in_fcorridor(grd, u.ux, u.uy)) {
if (mtmp->mtame) if (mtmp->mtame)
yelp(mtmp); yelp(mtmp);
(void) rloc(mtmp, FALSE); if (!rloc(mtmp, TRUE))
m_into_limbo(mtmp);
} }
} }
lev = &levl[fcx][fcy]; lev = &levl[fcx][fcy];