Re: [NEWBIE] bpl12 init_char

From: George (greerga@CIRCLEMUD.ORG)
Date: 09/24/98


On Thu, 24 Sep 1998, Mark Gerritsen wrote:

>I'm using bpl12, and I noticed the following in db.c, in init_char:
>
>  for (i = 1; i <= MAX_SKILLS; i++) {
>    if (GET_LEVEL(ch) < LVL_IMPL)
>      SET_SKILL(ch, i, 0)           <---- No semi-colon!
>    else
>      SET_SKILL(ch, i, 100);
>  }

It was a wrongly-defined macro we fixed in bpl13 or so.

It just required 'do { xxx } while(0)' around it instead of just '{ }'.

--
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