define WT_ macros in a header file

A recently added #undef WT_ELF caused a onefile build to break.

trap.c: In function 'trapeffect_landmine':
trap.c:2346:41: error: 'WT_ELF' undeclared (first use in this function); did you mean 'PM_ELF'?
trap.c:2346:41: note: each undeclared identifier is reported only once for each function it appears in
This commit is contained in:
nhmall
2023-04-22 11:13:53 -04:00
parent 92daa57395
commit d703539847
3 changed files with 3 additions and 15 deletions
-5
View File
@@ -25,9 +25,6 @@
0, 0, 0, 0 \
}
#define WT_ELF 800
#define WT_DRAGON 4500
#define MON(nam, sym, lvl, gen, atk, siz, mr1, mr2, \
flg1, flg2, flg3, d, col, bn) \
{ \
@@ -89,8 +86,6 @@ const struct attack c_sa_no[NATTK] = SEDUCTION_ATTACKS_NO;
#undef HI_LORD
#endif
#undef NO_ATTK
#undef WT_ELF
#undef WT_DRAGON
#undef MON
#undef MON3
#undef LVL