Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8796 → Rev 8797

/source/sw/src/demo.cpp
367,6 → 367,9
 
if (DemoSyncTest||DemoSyncRecord)
{
if (DemoSyncFile == NULL)
return;
 
fclose(DemoSyncFile);
DemoSyncFile = NULL;
}
/source/sw/src/game.cpp
725,11 → 725,13
if (fin)
{
memset(DemoName,'\0',sizeof(DemoName));
for (i = 0; TRUE; i++)
for (i = 0; i < ARRAY_SSIZE(DemoName); i++)
{
if (fscanf(fin, "%s", DemoName[i]) == EOF)
break;
}
if (i == ARRAY_SSIZE(DemoName))
initputs("WARNING: demos.run is too long, ignoring remaining files\n");
 
fclose(fin);
}
740,11 → 742,13
{
fgets(ds, 6, fin);
sscanf(ds,"%d",&DemoTextYstart);
for (i = 0; TRUE; i++)
for (i = 0; i < ARRAY_SSIZE(DemoText); i++)
{
if (fgets(DemoText[i], SIZ(DemoText[0])-1, fin) == NULL)
break;
}
if (i == ARRAY_SSIZE(DemoText))
initputs("WARNING: demotxt.run is too long, trimming the text\n");
 
fclose(fin);
}