fix some non-gl builds.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4495 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ceb259ccbc
commit
ae84691b38
2 changed files with 5 additions and 4 deletions
|
@ -346,8 +346,9 @@ static qboolean Terr_IsSectionFName(heightmap_t *hm, char *fname, int *sx, int *
|
||||||
}
|
}
|
||||||
static hmsection_t *Terr_ReadSection(heightmap_t *hm, hmsection_t *s, int sx, int sy, void *filebase, unsigned int filelen)
|
static hmsection_t *Terr_ReadSection(heightmap_t *hm, hmsection_t *s, int sx, int sy, void *filebase, unsigned int filelen)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i;
|
||||||
#ifndef SERVERONLY
|
#ifndef SERVERONLY
|
||||||
|
int j;
|
||||||
dsmesh_t *dm;
|
dsmesh_t *dm;
|
||||||
unsigned char *lm;
|
unsigned char *lm;
|
||||||
float *colours;
|
float *colours;
|
||||||
|
|
|
@ -137,7 +137,7 @@ int SVQ1_RecursiveLightPoint3C (model_t *model, mnode_t *node, vec3_t start, vec
|
||||||
|
|
||||||
lightmap += (dt * ((surf->extents[0])+1) + ds)*3;
|
lightmap += (dt * ((surf->extents[0])+1) + ds)*3;
|
||||||
|
|
||||||
for (maps = 0 ; maps < MAXLIGHTMAPS && surf->styles[maps] != 255 ;
|
for (maps = 0 ; maps < MAXQ1LIGHTMAPS && surf->styles[maps] != 255 ;
|
||||||
maps++)
|
maps++)
|
||||||
{
|
{
|
||||||
scale = sv.strings.lightstyles[surf->styles[maps]][0];
|
scale = sv.strings.lightstyles[surf->styles[maps]][0];
|
||||||
|
@ -1125,7 +1125,7 @@ qboolean Mod_LoadFaces (lump_t *l, qboolean lm)
|
||||||
out->firstedge = LittleLong(inl->firstedge);
|
out->firstedge = LittleLong(inl->firstedge);
|
||||||
out->numedges = LittleLong(inl->numedges);
|
out->numedges = LittleLong(inl->numedges);
|
||||||
tn = LittleLong (inl->texinfo);
|
tn = LittleLong (inl->texinfo);
|
||||||
for (i=0 ; i<MAXLIGHTMAPS ; i++)
|
for (i=0 ; i<MAXQ1LIGHTMAPS ; i++)
|
||||||
out->styles[i] = inl->styles[i];
|
out->styles[i] = inl->styles[i];
|
||||||
lofs = LittleLong(inl->lightofs);
|
lofs = LittleLong(inl->lightofs);
|
||||||
inl++;
|
inl++;
|
||||||
|
@ -1137,7 +1137,7 @@ qboolean Mod_LoadFaces (lump_t *l, qboolean lm)
|
||||||
out->firstedge = LittleLong(ins->firstedge);
|
out->firstedge = LittleLong(ins->firstedge);
|
||||||
out->numedges = LittleShort(ins->numedges);
|
out->numedges = LittleShort(ins->numedges);
|
||||||
tn = LittleShort (ins->texinfo);
|
tn = LittleShort (ins->texinfo);
|
||||||
for (i=0 ; i<MAXLIGHTMAPS ; i++)
|
for (i=0 ; i<MAXQ1LIGHTMAPS ; i++)
|
||||||
out->styles[i] = ins->styles[i];
|
out->styles[i] = ins->styles[i];
|
||||||
lofs = LittleLong(ins->lightofs);
|
lofs = LittleLong(ins->lightofs);
|
||||||
ins++;
|
ins++;
|
||||||
|
|
Loading…
Reference in a new issue