Re: [Code] Creating a new room

From: Joshua Crawford (mortarn@yahoo.com)
Date: 11/26/01


John skribis:

> Dear All,
>
> Trying to create a new room after the world has been loaded. Calling the
> below causes errors - can someone point me in the right direction?
>
> top_of_world++;
>  -CREATE(world[(int) top_of_world], struct room_data, 1);

+RECREATE(world, struct room_data, top_of_world + 1);

You need to add the extra room into the world[]. What you had above was
going out of range.

> PS: I know the rest. Just dont know how to create a new room.
>
> Thanks.

--
Joshua Crawford - joshcrawford@yahoo.com
Phone: +61 404 084662 - ICQ: 71445285

--
   +---------------------------------------------------------------+
   | 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/06/01 PST