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:
@@ -194,8 +194,9 @@ NEARDATA struct obj *migrating_objs = (struct obj *) 0;
|
||||
/* objects not yet paid for */
|
||||
NEARDATA struct obj *billobjs = (struct obj *) 0;
|
||||
|
||||
/* used to zero all elements of a struct obj */
|
||||
/* used to zero all elements of a struct obj and a struct monst */
|
||||
NEARDATA struct obj zeroobj = DUMMY;
|
||||
NEARDATA struct monst zeromonst = DUMMY;
|
||||
/* used to zero out union any; initializer deliberately omitted */
|
||||
NEARDATA anything zeroany;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user