Fixed script newline handling for Windows(tested by profi200 on Windows).

This commit is contained in:
yellows8 2015-08-01 09:59:53 -04:00
parent 90282a6508
commit 85bfcea19f

View File

@ -422,6 +422,8 @@ int parse_script(FILE *fscript)
strptr = strchr(linebuf, '\n');
if(strptr)*strptr = 0;
strptr = strchr(linebuf, '\r');
if(strptr)*strptr = 0;
if(strlen(linebuf)==0 || linebuf[0]=='#')
{