Revert "move struct propname to a header file"

This reverts commit 402b2bf5c8.
This commit is contained in:
nhmall
2022-09-06 08:01:50 -04:00
parent 402b2bf5c8
commit 817b4686ce
3 changed files with 8 additions and 7 deletions

View File

@@ -60,9 +60,4 @@ typedef struct fe {
Bitfield(needs_fixup, 1); /* does arg need to be patched? */
} timer_element;
struct propname {
int prop_num;
const char *prop_name;
};
#endif /* TIMEOUT_H */

View File

@@ -1952,7 +1952,10 @@ static int
wiz_intrinsic(void)
{
if (wizard) {
extern const struct propname propertynames[]; /* timeout.c */
extern const struct propname {
int prop_num;
const char *prop_name;
} propertynames[]; /* timeout.c */
static const char wizintrinsic[] = "#wizintrinsic";
static const char fmt[] = "You are%s %s.";
winid win;

View File

@@ -21,7 +21,10 @@ static void cleanup_burn(ANY_P *, long);
/* used by wizard mode #timeout and #wizintrinsic; order by 'interest'
for timeout countdown, where most won't occur in normal play */
const struct propname propertynames[] = {
const struct propname {
int prop_num;
const char *prop_name;
} propertynames[] = {
{ INVULNERABLE, "invulnerable" },
{ STONED, "petrifying" },
{ SLIMED, "becoming slime" },