zeromonst
Make 'zeromonst' global instead of local to makemon.c. Its address isn't used as a special value like &zeroobj, but it is useful to have available for initializing various pseudo-monsters. modified: include/decl.h src/decl.c, makemon.c, mkobj.c, mplayer.c, teleport.c
This commit is contained in:
+3
-1
@@ -128,7 +128,9 @@ unsigned entflags;
|
||||
/* default to player's original monster type */
|
||||
mdat = &mons[u.umonster];
|
||||
}
|
||||
fakemon.data = mdat; /* set up for goodpos */
|
||||
fakemon = zeromonst;
|
||||
set_mon_data(&fakemon, mdat, -1); /* set up for goodpos */
|
||||
|
||||
good_ptr = good;
|
||||
range = 1;
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user