Moved potion.c globals to instance_globals.
This commit is contained in:
@@ -464,6 +464,11 @@ struct instance_globals {
|
||||
/* pickup.c */
|
||||
int oldcap; /* last encumberance */
|
||||
|
||||
/* potion.c */
|
||||
boolean notonhead; /* for long worms */
|
||||
int potion_nothing;
|
||||
int potion_unkn;
|
||||
|
||||
/* read.c */
|
||||
boolean known;
|
||||
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
0 \
|
||||
}
|
||||
|
||||
/* UNDEFINED_VALUE and UNDEFINED_PTR are used to initialize variables whose
|
||||
initialized value is not relied upon. UNDEFINED_VALUE can be used to
|
||||
initialized any value type except pointers. UNDEFINED_PTR can be used
|
||||
only on pointer types. */
|
||||
#define UNDEFINED_VALUE { 0 }
|
||||
/* The UNDEFINED macros are used to initialize variables whose
|
||||
initialized value is not relied upon.
|
||||
UNDEFINED_VALUE: used to initialize any scalar type except pointers.
|
||||
UNDEFINED_VALUES: used to initialize any non scalar type without pointers.
|
||||
UNDEFINED_PTR: can be used only on pointer types. */
|
||||
#define UNDEFINED_VALUE 0
|
||||
#define UNDEFINED_VALUES { 0 }
|
||||
#define UNDEFINED_PTR NULL
|
||||
|
||||
/* symbolic names for capacity levels */
|
||||
|
||||
Reference in New Issue
Block a user