mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Clean up mod_lightmap_bytes.
Just how many definitions do we need?
This commit is contained in:
parent
dcf2b14188
commit
2894689f71
5 changed files with 8 additions and 8 deletions
|
@ -54,8 +54,6 @@ static __attribute__ ((used)) const char rcsid[] =
|
|||
|
||||
#include "compat.h"
|
||||
|
||||
VISIBLE int mod_lightmap_bytes = 3; //FIXME should this be visible?
|
||||
|
||||
|
||||
void
|
||||
Mod_ProcessTexture (miptex_t *mt, texture_t *tx)
|
||||
|
|
|
@ -56,8 +56,6 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
|
|||
|
||||
#include "compat.h"
|
||||
|
||||
VISIBLE int mod_lightmap_bytes;
|
||||
|
||||
void
|
||||
Mod_ProcessTexture (miptex_t *mt, texture_t *tx)
|
||||
{
|
||||
|
@ -71,6 +69,13 @@ Mod_LoadExternalTextures (model_t *mod)
|
|||
void
|
||||
Mod_LoadLighting (bsp_t *bsp)
|
||||
{
|
||||
mod_lightmap_bytes = 1;
|
||||
if (!bsp->lightdatasize) {
|
||||
loadmodel->lightdata = NULL;
|
||||
return;
|
||||
}
|
||||
loadmodel->lightdata = Hunk_AllocName (bsp->lightdatasize, loadname);
|
||||
memcpy (loadmodel->lightdata, bsp->lightdata, bsp->lightdatasize);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -57,6 +57,7 @@ static __attribute__ ((used)) const char rcsid[] =
|
|||
byte mod_novis[MAX_MAP_LEAFS / 8];
|
||||
|
||||
VISIBLE cvar_t *gl_sky_divide; //FIXME visibility?
|
||||
VISIBLE int mod_lightmap_bytes = 1; //FIXME should this be visible?
|
||||
|
||||
VISIBLE mleaf_t *
|
||||
Mod_PointInLeaf (const vec3_t p, model_t *model)
|
||||
|
|
|
@ -43,8 +43,6 @@ static __attribute__ ((used)) const char rcsid[] =
|
|||
|
||||
#include "QF/model.h"
|
||||
|
||||
VISIBLE int mod_lightmap_bytes = 1; //FIXME should this be visible?
|
||||
|
||||
|
||||
void
|
||||
Mod_SubdivideSurface (msurface_t *fa)
|
||||
|
|
|
@ -35,8 +35,6 @@ static __attribute__ ((used)) const char rcsid[] =
|
|||
#include "QF/model.h"
|
||||
#include "QF/render.h"
|
||||
|
||||
int mod_lightmap_bytes = 1;
|
||||
|
||||
void
|
||||
Mod_LoadLighting (bsp_t *bsp)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue