Re: [CODE] MAX_AFFECTS

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/04/98


On Wed, 4 Nov 1998, Igor wrote:

>Still having problems with affection flags...
>Although for MAX_AFFECTS in structs.h says DO NOT CHANGE i've changed it
>from 32 to 100 but AFF_FLAGS after 30 don't work...
>Spells make those affects which don't work so i've changed the
>MAX_SPELL_AFFECTS to 100
>but it still reports INVALID BITVECTOR (although in constants everything
>seems OK)
>????
>If it's the same bug as in PRF_FLAGS, what is to be done, please help.

That requires the AFF2_FLAGGED() solution many people have come up with.

Otherwise you can change 'long bitvector;' in affected_type to 'long long'
(assuming it works on your compiler) to give yourself 64 bits instead.
However, then you'll have to fix sprintbit() and a host of other things.

The 128-bit patch is a good place to go.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST