Re: NOWHERE, NOBODY, NOTHING tests...

From: George Greer (greerga@circlemud.org)
Date: 03/05/01


On Mon, 5 Mar 2001, Peter Ajamian wrote:

[...NOTHING, NOWHERE, NOBODY defines...]

>Most places where these values are tested do so to avoid crashing the
>MUD by indexing an array with a negative value.

The only reason they ever get a negative value is because NOWHERE, NOTHING,
and NOBODY are -1.  Therefore, every other value will be a valid array
index; see real_room().  I was thinking someone might want 65535 as their
N/N/N value to get twice as many zones as the standard.

--
George Greer            | If it's about the CircleMUD mailing list,
greerga@circlemud.org   | mail owner-circle@post.queensu.ca instead.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST