On Sat, 14 Sep 1996, Skylar wrote: > On Sat, 14 Sep 1996, Mud Admin wrote: > > ACMD(do_aff) > { > /** > This next madness is because search_block() forces lower on the > first arg, but does nothing to the list it searches to match it > **/ > char *aff_names[] = > { "blind", "invis", "det-align", "det-invis", "det-magic", "sense-life", > "watwalk", "sanct", "group", "curse", "infra", "poison", "prot-evil", > "prot-good", "sleep", "!track", "UNUSED", "UNUSED", "sneak", "hide", > "UNUSED", "charm", > /* add new affect names here, they MUST be before the "\n" */ > "\n" Could you not just use affected_bits[] in constants.c here instead? (I tend to hate repeated code unless absolutly necessary) Brazil +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST