Re: [CODE] GET_LEVEL(vict) && crash

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 11/08/97


On Sat, 8 Nov 1997, Co-Sysop wrote:

->>>         else if (GET_LEVEL(vict) < LVL_IMPL)
->>>           act(message to player like "Don't kill imps");
->
->There were no warning while compiling.  That is why I was so puzzled.

A warning/compiler error results in code that won't work.  A crash
results from code that doesn't work how you want it to (unless you
wanted to crash the game).

BTW, looking at the above code, isn't that a logic error?  I mean,
that would mean that the message would only be shown if they tried
killing people that were below the Implementor level.  I thought the
idea was to prevent people from killing implementors, not everyone but
implementors?  Hopefully that was just an error from when you retyped
it, and this message probably is worthless, but you never can tell...


daniel koepke / dkoepke@california.com


     +------------------------------------------------------------+
     | 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/08/00 PST