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:
@@ -6,8 +6,6 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
STATIC_VAR NEARDATA struct monst zeromonst;
|
||||
|
||||
/* this assumes that a human quest leader or nemesis is an archetype
|
||||
of the corresponding role; that isn't so for some roles (tourist
|
||||
for instance) but is for the priests and monks we use it for... */
|
||||
@@ -23,7 +21,8 @@ STATIC_DCL void FDECL(m_initgrp, (struct monst *, int, int, int));
|
||||
STATIC_DCL void FDECL(m_initthrow, (struct monst *, int, int));
|
||||
STATIC_DCL void FDECL(m_initweap, (struct monst *));
|
||||
STATIC_DCL void FDECL(m_initinv, (struct monst *));
|
||||
STATIC_DCL boolean FDECL(makemon_rnd_goodpos, (struct monst *, unsigned, coord *));
|
||||
STATIC_DCL boolean FDECL(makemon_rnd_goodpos, (struct monst *,
|
||||
unsigned, coord *));
|
||||
|
||||
extern const int monstr[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user