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:
parent
e5cc1ba3c3
commit
bc49957d23
1 changed files with 6 additions and 3 deletions
|
@ -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).
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue