Fix prot from shape changers at level generation

Mimics and other shape changers created at level generation
did not obey protection from shape changers.
This commit is contained in:
Pasi Kallinen
2015-12-26 21:40:17 +02:00
parent 3c9b0f25b6
commit e55dd6919a
2 changed files with 3 additions and 2 deletions

View File

@@ -1988,7 +1988,7 @@ register struct monst *mtmp;
struct obj *otmp;
int mx, my;
if (!mtmp)
if (!mtmp || Protection_from_shape_changers)
return;
mx = mtmp->mx;
my = mtmp->my;