Re: CODE help needed please.

From: Niese-Petersen (
Date: 12/21/96

On Sat, 21 Dec 1996, Michael J. McGillick wrote:

> I would like some help with getting around one of the limits in the Circle
> MUD code.  I'm running CircleMUD 3.0 patchlevel 11.  I would like to have
> more than 32 classes and races combined.  In fact, I already have more
> than 32 classes.
> the problem that I'm running into is in structs.h and shop.h.  My defines
> for ITEM_ANTI_XXXX have gotten up to shifting (1 << 56).  Obviously I'm
> get compiler warnings that everything after the 31st shift is out of range
> for the variable.  Has anyone come up with an effective solution around
> this?  If you have, please let me know what you had to do to fix this.  I
> would like to post a patch, but I don't have any idea where to begin.  I'm
> not a novice C programmer, however, I'm far from being considered a guru
> either.  Please help.

I came with a faintly answer to this a few days ago.. So I will sit down
with Stock Circle3.0 bpl 11 [Have to anyway, if I want my own MUD running
one day :) ] and find what need to be changed for my solution to work.
When I get it done and tested, I will mail it to the list, and maybe Alex
will pick it up for the Snippet page.
Its not the only answer, but it should work.

Erik Niese-Petersen
Quint the Typo dane
Realms of Darkness IMP
EX. co-IMP of StrangeMUD  [ 9332]
EX. co-IMP of FuskerMUD   [ 4000]

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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