1
0
Fork 0
forked from fte/fteqw

those conditions are slightly better than before.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@281 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-10-01 22:17:33 +00:00
parent e5cc1ba3c3
commit bc49957d23

View file

@ -421,9 +421,12 @@ void GLMod_Think (void)
char filename[MAX_QPATH];
Con_Printf("Finished lighting level\n");
COM_StripExtension(lightmodel->name, filename);
COM_DefaultExtension(filename, ".lux");
COM_WriteFile(filename, lightmodel->deluxdata-8, numlightdata*3+8);
if (lightmodel->deluxdata)
{
COM_StripExtension(lightmodel->name, filename);
COM_DefaultExtension(filename, ".lux");
COM_WriteFile(filename, lightmodel->deluxdata-8, numlightdata*3+8);
}
if (writelitfile) //the user might already have a lit file (don't overwrite it).
{