there is something strange about the way borland c++ 5.01 handles sprintf,
where it will not concatenate two strings together, and so only shows the
last string that was attempted, i verified this by putting
sprintf(buf, "%s %s ", buf, dirs[door]);
send_to_char(buf, ch);
and it would show
north
south
east
west
and not
north
north south
north south east
north south east west
which is what it is suppose to do, i tried a simple work around using
strcat, and it appears to be working ,it is listed below
for (door = 0; door < NUM_OF_DIRS; door++)
{
if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE &&
!IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED))
{
/*stock single letter autoexit*/
/*
sprintf(buf, "%s%c ", buf, LOWER(*dirs[door]));
*/
/*george greer's whole word autoexit*/
/*
sprintf(buf, "%s %s ", buf, dirs[door]);
*/
strcat(buf, dirs[door]);
strcat(buf, " ");
}
}
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST