I added everything from the snippet, and am getting an error on compile,
Code:
gcc -g -O2 -Wall -c -o act.comm.o act.comm.c
gcc -g -O2 -Wall -c -o act.informative.o act.informative.c
act.informative.c: In function ‘show_obj_to_char’:
act.informative.c:122: error: called object ‘obj->obj_flags.durability’ is not a function
act.informative.c:123: error: called object ‘obj->obj_flags.durability’ is not a function
act.informative.c:145: error: called object ‘obj->obj_flags.durability’ is not a function
act.informative.c:146: error: called object ‘obj->obj_flags.durability’ is not a function
make[1]: *** [act.informative.o] Error 1
checked structs.h and the line is there for int durability;
not sure what else could be wrong, here are the lines, line 122 is the first line,
Code:
if ((GET_OBJ_MAX_DURAB(obj) != 0) && (GET_OBJ_MAX_DURAB(obj) > GET_OBJ_DURABILITY(obj)))
percent = (100 * GET_OBJ_DURABILITY(obj)) / GET_OBJ_MAX_DURAB(obj);
else
percent = 100;