Clean up mod_lightmap_bytes.

Just how many definitions do we need?
This commit is contained in:
Bill Currie 2011-12-25 11:35:32 +09:00
parent dcf2b14188
commit 2894689f71
5 changed files with 8 additions and 8 deletions

View file

@ -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)

View file

@ -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

View file

@ -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)

View file

@ -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)

View file

@ -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)
{