On Wed, 24 May 2000, Thomas Arp wrote:
> + for (count = 0;count <= top_of_world;count++)
> + if (world[count].number==r->number)
> + room_id=count;
Why do you keep looking after you've found the room_id? And why not just
use the much faster real_room() function?
room_rnum room_id = real_room(r->number);
if (room_id != NOWHERE)
sprintf(str, "%ld", (long) room_id + ROOM_ID_BASE);
else
*str = '\0';
Or something.
-dak
+------------------------------------------------------------+
| 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 : 04/10/01 PDT