if ( ( pexit = location->exit[door] ) != NULL )
{
ROOM_DATA* proom = pexit->u1.to_room;
int vnum = proom ? -1 : proom->vnum;
/* etc… */
send_to_char( Format("Door: %d. To: %d. Key: %d. Exit flags: %d.\n\rKeyword: '%s'. Description: %s",
door, vnum, pkey, pexit_info, pkeyword, pdesc, /* and so on … */) );
}
for ( door = 0; door <= 5; door++ )
{
EXIT_DATA *pexit;
if ( ( pexit = location->exit[door] ) != NULL )
{
send_to_char( Format("Door: %d. ", door), ch );
send_to_char( Format("To: %d. ", (pexit->u1.to_room == NULL ? -1 : pexit->u1.to_room->vnum)), ch );
send_to_char( Format("Key: %d. ", pexit->key), ch );
send_to_char( Format("Exit flags: %d.\n\r", pexit->exit_info), ch );
send_to_char( Format("Keywords: %s. ", pexit->keyword), ch );
send_to_char( Format("Description: %s.\n\r", pexit->description[0] != '\0' ? pexit->description : "(none).\n\r"), ch );
}
}
if (!IS_NULLSTR(pExit->description))
{
fprintf( fp, "%s~\n", fix_string( pExit->description ) );
}
else
{
fprintf(fp, "%s~\n", fix_string (pExit->description ="(none)") );
}
fix_string (pExit->description ="(none)")
str_dup("None")
fprintf( fp, "%s~\n", fix_string(pExit->description ? pExit->description : "none" ) );
My rstat is crashing and I'm not sure I understand why. This is what I'm getting from the compiler.