Re: [CODE] question about top_of_world

From: Mike Breuer (mbreuer@new.rr.com)
Date: 12/13/01


----- Original Message -----
From: "krenshala" <krenshala@JUMP.NET>
> But the only place I find top_of_world defined,
> it has a value of zero (0), which means...

Then you're not looking hard enough.  db.c, parse_room(..):

    case 'S':                   /* end of room */
      top_of_world = room_nr++;

If you use olc, it's also incremented in there, as needed.  It is used to
store the index of the highest valid room in the world[] array.  Also, of
course, top_of_world + 1 == the size of the world[] array.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT