if (i == -1)
act( "You couldn't find a path to $N from here.",
ch, NULL, victim, TO_CHAR );
else
sprintf( buf, "$N is %s from here.", dir_name[i] );
act( buf, ch, NULL, victim, TO_CHAR );
check_improve(ch, gsn_track, TRUE, 1);
}
if (i == -1)
act( "You couldn't find a path to $N from here.", ch, NULL, victim, TO_CHAR );
else {
sprintf( buf, "$N is %s from here.", dir_name[i] );
act( buf, ch, NULL, victim, TO_CHAR );
}
check_improve(ch, gsn_track, TRUE, 1);
}
My mud does not have chprintf, so would this do as a replacement?
It compiles, and works.. but my concern is will it break anything?
[edit]
btw, that is my first time actually -writing- code. most of it was guessing and common sense.