On Sun, 5 Dec 1999, Magnus Jardstam wrote:
>No... It's not a bug. The highest room-# is equal to top_of_world - 1.
greerga@moving:~/mud/circle30bpl16/src$ fgrep '<= top_of_world' *.c | wc
4 42 242
greerga@moving:~/mud/circle30bpl16/src$ fgrep '< top_of_world' *.c | wc
2 21 112
greerga@moving:~/mud/circle30bpl16/src$ fgrep '<= top_' *.c | wc
26 252 1483
greerga@moving:~/mud/circle30bpl16/src$ fgrep '< top_' *.c | wc
2 21 112
greerga@moving:~/mud/circle30bpl16/src$ fgrep -C '< top_' *.c
act.wizard.c- case 7:
act.wizard.c- strcpy(buf, "Godrooms\r\n--------------------------\r\n");
act.wizard.c: for (i = 0, j = 0; i < top_of_world; i++)
act.wizard.c- if (ROOM_FLAGGED(i, ROOM_GODROOM))
act.wizard.c- sprintf(buf + strlen(buf), "%2d: [%5d] %s\r\n",
--
spec_assign.c-
spec_assign.c- if (dts_are_dumps)
spec_assign.c: for (i = 0; i < top_of_world; i++)
spec_assign.c- if (ROOM_FLAGGED(i, ROOM_DEATH))
spec_assign.c- world[i].func = dump;
>>From: Andrey Fidrya <andrey@ALEX-UA.COM>
>>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;
>>}
--
George Greer | Stock CircleMUD Bug Reporting or Help
greerga@circlemud.org | http://bugs.circlemud.org/
+------------------------------------------------------------+
| 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