mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
don't seg when using 1 component lightmaps
This commit is contained in:
parent
cc41875968
commit
4d1313d0c1
1 changed files with 1 additions and 1 deletions
|
@ -132,10 +132,10 @@ Mod_LoadLighting (lump_t *l)
|
|||
dstring_t *litfilename = dstring_new ();
|
||||
int i;
|
||||
|
||||
dstring_copystr (litfilename, loadmodel->name);
|
||||
loadmodel->lightdata = NULL;
|
||||
if (mod_lightmap_bytes > 1) {
|
||||
// LordHavoc: check for a .lit file to load
|
||||
dstring_copystr (litfilename, loadmodel->name);
|
||||
QFS_StripExtension (litfilename->str, litfilename->str);
|
||||
dstring_appendstr (litfilename, ".lit");
|
||||
data = (byte *) QFS_LoadHunkFile (litfilename->str);
|
||||
|
|
Loading…
Reference in a new issue