- Fixed: ZDBSP had debugging output left in when parsing comments in TEXTMAPs, but

the output file was never initialized.

SVN r1674 (trunk)
This commit is contained in:
Randy Heit 2009-06-22 23:09:52 +00:00
parent 2ce8b28235
commit 7d79fa81fb
2 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ bool sc_End;
bool sc_Crossed; bool sc_Crossed;
bool sc_StringQuoted; bool sc_StringQuoted;
bool sc_FileScripts = false; bool sc_FileScripts = false;
FILE *sc_Out; //FILE *sc_Out;
// PRIVATE DATA DEFINITIONS ------------------------------------------------ // PRIVATE DATA DEFINITIONS ------------------------------------------------
@ -247,14 +247,14 @@ bool SC_GetString (bool multiline)
sc_Line++; sc_Line++;
sc_Crossed = true; sc_Crossed = true;
} }
fputc(ScriptPtr[0], sc_Out); // fputc(ScriptPtr[0], sc_Out);
ScriptPtr++; ScriptPtr++;
if (ScriptPtr >= ScriptEndPtr - 1) if (ScriptPtr >= ScriptEndPtr - 1)
{ {
sc_End = true; sc_End = true;
return false; return false;
} }
fputs("*/", sc_Out); // fputs("*/", sc_Out);
} }
ScriptPtr += 2; ScriptPtr += 2;
} }
@ -262,7 +262,7 @@ bool SC_GetString (bool multiline)
{ // C++ comment { // C++ comment
while (*ScriptPtr++ != '\n') while (*ScriptPtr++ != '\n')
{ {
fputc(ScriptPtr[-1], sc_Out); // fputc(ScriptPtr[-1], sc_Out);
if (ScriptPtr >= ScriptEndPtr) if (ScriptPtr >= ScriptEndPtr)
{ {
sc_End = true; sc_End = true;
@ -271,7 +271,7 @@ bool SC_GetString (bool multiline)
} }
sc_Line++; sc_Line++;
sc_Crossed = true; sc_Crossed = true;
fputc('\n', sc_Out); // fputc('\n', sc_Out);
} }
} }
} }

View file

@ -39,6 +39,6 @@ extern bool sc_Crossed;
extern bool sc_FileScripts; extern bool sc_FileScripts;
extern bool sc_StringQuoted; extern bool sc_StringQuoted;
extern char *sc_ScriptsDir; extern char *sc_ScriptsDir;
extern FILE *sc_Out; //extern FILE *sc_Out;
#endif //__SC_MAN_H__ #endif //__SC_MAN_H__