Ben Merton wrote:
> Any suggestions for this would be greatly appreciated :) Thanks for your
> help so far!!
Mailer code follows:
void do_auto_exits(struct char_data * ch)
{
char buf[MAX_STRING_LENGTH];
int door;
size_t len = 0;
for (door = 0; door < NUM_OF_DIRS; door++)
if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE)
len += sprintf(buf + len, "%s%s%s", len ? ", " : "",
capdirs[door], IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED) ?
"(Closed)" : "");
if (!len)
strcpy(buf, "None");
send_to_char(ch, "Exits: %s.\r\n", buf);
}
--
Juliano Ravasi Ferraz <jferraz@linkway.com.br>
Half the lies they tell me aren't true. --Yogi Berra
--
+---------------------------------------------------------------+
| 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/25/03 PDT