diff --git a/src/bbs.c b/src/bbs.c index bdf7d26..ddbb2e4 100644 --- a/src/bbs.c +++ b/src/bbs.c @@ -342,9 +342,12 @@ void s_displayansi(char *file) { char buffer[256]; - sprintf(buffer, "%s/%s.ans", conf.ansi_path, file); - - s_displayansi_pause(buffer, 0); + if (strchr(file, '/') == NULL) { + sprintf(buffer, "%s/%s.ans", conf.ansi_path, file); + s_displayansi_pause(buffer, 0); + } else { + s_displayansi_pause(file, 0); + } } char s_getchar() {