diff options
Diffstat (limited to 'src/r_data.c')
-rw-r--r-- | src/r_data.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/r_data.c b/src/r_data.c index 0f792d8e..2b11d82c 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -529,13 +529,20 @@ void R_InitTextures (void) temp1 = W_GetNumForName (DEH_String("S_START")); // P_??????? temp2 = W_GetNumForName (DEH_String("S_END")) - 1; temp3 = ((temp2-temp1+63)/64) + ((numtextures+63)/64); - printf("["); - for (i = 0; i < temp3; i++) - printf(" "); - printf(" ]"); - for (i = 0; i < temp3; i++) - printf("\x8"); - printf("\x8\x8\x8\x8\x8\x8\x8\x8\x8\x8"); + + // If stdout is a real console, use the classic vanilla "filling + // up the box" effect, which uses backspace to "step back" inside + // the box. If stdout is a file, don't draw the box. + + if (I_ConsoleStdout()) + { + printf("["); + for (i = 0; i < temp3 + 9; i++) + printf(" "); + printf("]"); + for (i = 0; i < temp3 + 10; i++) + printf("\b"); + } for (i=0 ; i<numtextures ; i++, directory++) { |