mirror of
https://github.com/ZDoom/zdbsp.git
synced 2025-02-10 22:50:37 +00:00
- 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:
parent
2ce8b28235
commit
7d79fa81fb
2 changed files with 6 additions and 6 deletions
10
sc_man.cpp
10
sc_man.cpp
|
@ -66,7 +66,7 @@ bool sc_End;
|
|||
bool sc_Crossed;
|
||||
bool sc_StringQuoted;
|
||||
bool sc_FileScripts = false;
|
||||
FILE *sc_Out;
|
||||
//FILE *sc_Out;
|
||||
|
||||
// PRIVATE DATA DEFINITIONS ------------------------------------------------
|
||||
|
||||
|
@ -247,14 +247,14 @@ bool SC_GetString (bool multiline)
|
|||
sc_Line++;
|
||||
sc_Crossed = true;
|
||||
}
|
||||
fputc(ScriptPtr[0], sc_Out);
|
||||
// fputc(ScriptPtr[0], sc_Out);
|
||||
ScriptPtr++;
|
||||
if (ScriptPtr >= ScriptEndPtr - 1)
|
||||
{
|
||||
sc_End = true;
|
||||
return false;
|
||||
}
|
||||
fputs("*/", sc_Out);
|
||||
// fputs("*/", sc_Out);
|
||||
}
|
||||
ScriptPtr += 2;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ bool SC_GetString (bool multiline)
|
|||
{ // C++ comment
|
||||
while (*ScriptPtr++ != '\n')
|
||||
{
|
||||
fputc(ScriptPtr[-1], sc_Out);
|
||||
// fputc(ScriptPtr[-1], sc_Out);
|
||||
if (ScriptPtr >= ScriptEndPtr)
|
||||
{
|
||||
sc_End = true;
|
||||
|
@ -271,7 +271,7 @@ bool SC_GetString (bool multiline)
|
|||
}
|
||||
sc_Line++;
|
||||
sc_Crossed = true;
|
||||
fputc('\n', sc_Out);
|
||||
// fputc('\n', sc_Out);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
sc_man.h
2
sc_man.h
|
@ -39,6 +39,6 @@ extern bool sc_Crossed;
|
|||
extern bool sc_FileScripts;
|
||||
extern bool sc_StringQuoted;
|
||||
extern char *sc_ScriptsDir;
|
||||
extern FILE *sc_Out;
|
||||
//extern FILE *sc_Out;
|
||||
|
||||
#endif //__SC_MAN_H__
|
||||
|
|
Loading…
Reference in a new issue