At the top of fight.c do you have a line that reads:
#include "merc.h"
If not, perhaps you should add that and try it again?
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Im am trying to add a snippet with some spells, which also has a fight affect to it. I followed the snippet exactly how it explains to install it, and I get this error. I have defined what ff, gg, and hh are in merc.h. The spells were added to const.c, and the rest went into magic.c and magic.h as they were supposed to. What might cause it to think its undefined?
fight.c: In function 'damage':
fight.c:1008: error: 'ff' undeclared (first use in this function)
fight.c:1008: error: (Each undeclared identifier is reported only once
fight.c:1008: error: for each function it appears in.)
fight.c:1010: error: 'gg' undeclared (first use in this function)
fight.c:1017: error: 'hh' undeclared (first use in this function)
fight.c: In function 'check_force_shield':
fight.c:4157: error: 'ff' undeclared (first use in this function)
fight.c: In function 'check_static_shield':
fight.c:4184: error: 'gg' undeclared (first use in this function)
fight.c: In function 'check_flame_shield':
fight.c:4226: error: 'hh' undeclared (first use in this function)
make: *** [obj/fight.o] Error 1
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.