Hi all, i got silly and decided to convert room flags to be extended bitvectors as i needed more than 32,
What i have done se far is change to this in mud.h
EXT_BV room_flags;
Changed the #defines to be a typedef enum with all the room flags nicely sorted, Have gone through all the code changing IS_SET to xIS_SET.
and changed calls to flag_string to be ext_flag_string. Now i still have a few compile errors that i cannot work out how to fix.
Incompatable type for argument 1 of ext_flag_string :
Incompatable types in assignment
and last but not least,
invalid operands to binary &&
Im sort of gathering that i will need to change a variable somewhere but for the life of me i have no idea, any help on this would be great. Thanks in advance.
What i have done se far is change to this in mud.h
EXT_BV room_flags;
Changed the #defines to be a typedef enum with all the room flags nicely sorted, Have gone through all the code changing IS_SET to xIS_SET.
and changed calls to flag_string to be ext_flag_string. Now i still have a few compile errors that i cannot work out how to fix.
Incompatable type for argument 1 of ext_flag_string :
ch_printf_color( ch, "&cRoom flags: &w%s\n\r", ext_flag_string(location->room_flags, r_flags) );
Incompatable types in assignment
pRoomIndex->room_flags = x2;
and
room->room_flags = ROOM_INDOORS | ROOM_PRIVATE | ROOM_NO_RECALL | ROOM_NO_SUMMON | ROOM_NO_ASTRAL | ROOM_SOLITARY;
and last but not least,
invalid operands to binary &&
location -> room_flags = ROOM_PROTOTYPE && rm -> room_flags;
Im sort of gathering that i will need to change a variable somewhere but for the life of me i have no idea, any help on this would be great. Thanks in advance.