diff --git a/src/items/seed.c b/src/items/seed.c index 0e4b54e98..f17e8ed29 100644 --- a/src/items/seed.c +++ b/src/items/seed.c @@ -17,13 +17,11 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. **/ #include -#include #include "seed.h" /* kernel includes */ #include -#include #include #include @@ -42,7 +40,7 @@ static void produce_seeds(region * r, const resource_type * rtype, int norders) static int limit_seeds(const region * r, const resource_type * rtype) { - if (fval(r, RF_MALLORN)) { + if ((r->flags & RF_MALLORN)) { return 0; } return r->land ? r->land->trees[0] : 0; @@ -68,13 +66,13 @@ void init_seed(void) static void produce_mallornseeds(region * r, const resource_type * rtype, int norders) { - assert(fval(r, RF_MALLORN)); + assert(r->flags & RF_MALLORN); r->land->trees[0] -= norders; } static int limit_mallornseeds(const region * r, const resource_type * rtype) { - if (!fval(r, RF_MALLORN)) { + if (!(r->flags & RF_MALLORN)) { return 0; } return r->land ? r->land->trees[0] : 0; diff --git a/src/monster.h b/src/monster.h index 476bcb73e..0f936b17d 100644 --- a/src/monster.h +++ b/src/monster.h @@ -31,7 +31,7 @@ extern "C" { void make_zombie(struct unit * u); #define MONSTER_ID 666 -#define is_monsters(f) (fval(f, FFL_NPC) && f==get_monsters()) +#define is_monsters(f) ((f->flags & FFL_NPC) && f==get_monsters()) #ifdef __cplusplus } diff --git a/src/races/zombies.c b/src/races/zombies.c index ab4c89988..d7f871dac 100644 --- a/src/races/zombies.c +++ b/src/races/zombies.c @@ -15,7 +15,6 @@ #include /* kernel includes */ -#include #include #include #include @@ -40,7 +39,7 @@ void make_undead_unit(unit * u) { free_orders(&u->orders); name_unit(u); - fset(u, UFL_ISNEW); + u->flags |= UFL_ISNEW; } void age_undead(unit * u)