diff --git a/src/spells/regioncurse.c b/src/spells/regioncurse.c index cdce6ceb4..91cd0a713 100644 --- a/src/spells/regioncurse.c +++ b/src/spells/regioncurse.c @@ -148,12 +148,13 @@ static struct curse_type ct_farvision = { /* --------------------------------------------------------------------- */ +#ifdef ENABLE_FOGTRAP_CURSE const struct curse_type ct_fogtrap = { "fogtrap", CURSETYP_NORM, 0, (M_DURATION | M_VIGOUR), cinfo_simple }; - +#endif const struct curse_type ct_maelstrom = { "maelstrom", CURSETYP_NORM, 0, (M_DURATION | M_VIGOUR), @@ -258,7 +259,9 @@ const struct curse_type ct_healing = { void register_regioncurse(void) { +#ifdef ENABLE_FOGTRAP_CURSE ct_register(&ct_fogtrap); +#endif ct_register(&ct_antimagiczone); ct_register(&ct_farvision); ct_register(&ct_gbdream); diff --git a/src/spells/regioncurse.h b/src/spells/regioncurse.h index 14e07afc4..acda153c2 100644 --- a/src/spells/regioncurse.h +++ b/src/spells/regioncurse.h @@ -13,12 +13,14 @@ extern const struct curse_type ct_astralblock; extern const struct curse_type ct_badmagicresistancezone; extern const struct curse_type ct_goodmagicresistancezone; extern const struct curse_type ct_holyground; -extern const struct curse_type ct_fogtrap; extern const struct curse_type ct_magicstreet; extern const struct curse_type ct_maelstrom; extern const struct curse_type ct_riotzone; extern const struct curse_type ct_generous; extern const struct curse_type ct_badlearn; +#ifdef ENABLE_FOGTRAP_CURSE +extern const struct curse_type ct_fogtrap; +#endif struct region;