30 Nov, 2011, jurdendurden wrote in the 1st comment:
Votes: 0
#define IS_HUMAN(ch)				(ch->race == RACE_HUMAN)
#define IS_ELF(ch) (ch->race == RACE_ELF || ch->race == RACE_DROW)
#define IS_SURFACE_ELF(ch) (ch->race == RACE_ELF)
#define IS_DWARF(ch) (ch->race == RACE_DWARF || ch->race == RACE_DUERGAR)
#define IS_ORC(ch) (ch->race == RACE_HALF_ORC || ch->race == RACE_ORC)
#define IS_HALFLING(ch) (ch->race == RACE_HALFLING)
#define IS_GNOME(ch) (ch->race == RACE_GNOME)
#define IS_DROW(ch) (ch->race == RACE_DROW)
#define IS_DUERGAR(ch) (ch->race == RACE_DUERGAR)
#define IS_HALF_OGRE(ch) (ch->race == RACE_HALF_OGRE)
#define IS_GNOLL(ch) (ch->race == RACE_GNOLL)
#define IS_MINOTAUR(ch) (ch->race == RACE_MINOTAUR)
#define IS_UNDEAD(ch) (ch->race > 95 && ch->race < 106)
#define IS_DRAGON(ch) (ch->race > 37 && ch->race < 57)
#define IS_ANGELIC(ch) (ch->race > 56 && ch->race < 60)
#define IS_GIANT(ch) (ch->race > 147 && ch->race < 155)
#define IS_GOLEM(ch) (ch->race > 143 && ch->race < 148)
#define IS_ELEMENTAL(ch) (ch->race == 89)

#define IS_BIPED(ch) (IS_HUMAN(ch) || (IS_ELF(ch)) || (IS_DWARF(ch)) || (IS_ORC(ch)) || IS_HALFLING(ch) \
(IS_GNOME(ch)) || IS_MINOTAUR(ch) || (IS_GIANT(ch)) || IS_HALF_OGRE(ch))
//Determining species for skinning values and such.


These are my macros, I've moved them around quite a bit and added parenthesis where I think they should go, but I must be missing something because a function of mine is still getting this warning on this line:

if (WAS_BIPED(obj))
skin->cost *= 1.25;



Any ideas? I feel like I'm just missing some obvious solution.
30 Nov, 2011, jurdendurden wrote in the 2nd comment:
Votes: 0
Using gcc 4.4.1 just in case that's necessary.
30 Nov, 2011, Tyche wrote in the 3rd comment:
Votes: 0
You don't show us the definition for WAS_BIPED.
30 Nov, 2011, jurdendurden wrote in the 4th comment:
Votes: 0
Ironically enough the problem was in WAS_BIPED and I was looking in the wrong macro for the problem. Thanks Tyche for pointing that out, haha. Knew it was something simple I was overlooking.
0.0/4