top_of_world

From: Andrey Fidrya (andrey@alex-ua.com)
Date: 12/04/99


Is this a bug?
(act.wizard.c):
case 6:
  strcpy(buf, "Death Traps\r\n-----------\r\n");
  for (i = 0, j = 0; i <= top_of_world; i++)
    if (ROOM_FLAGGED(i, ROOM_DEATH))
[...]
case 7:
  strcpy(buf, "Godrooms\r\n--------------------------\r\n");
  for (i = 0, j = 0; i < top_of_world; i++)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ should be <=?

There's another one in spec_assign.c:
void assign_rooms(void)
{
  int i;

  ASSIGNROOM(3030, dump);
  ASSIGNROOM(3031, pet_shops);

  if (dts_are_dumps)
    for (i = 0; i < top_of_world; i++)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      if (ROOM_FLAGGED(i, ROOM_DEATH))
world[i].func = dump;
}


Andrey


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST