1
0
Fork 0
forked from fte/fteqw
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4070 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-07-14 17:33:44 +00:00
parent 71dce10318
commit a2f7763d97

View file

@ -376,8 +376,8 @@ static void Terr_SaveSection(heightmap_t *hm, hmsection_t *s, int sx, int sy)
ds.heights[i] = LittleFloat(s->heights[i]);
}
ds.holes = s->holes;
ds.minh = s->minh:
ds.maxh = s->maxh:
ds.minh = s->minh;
ds.maxh = s->maxh;
FS_WriteFile(Terr_DiskSectionName(hm, sx, sy), &ds, sizeof(ds), FS_GAMEONLY);
#endif
@ -577,7 +577,7 @@ void Terr_DrawTerrainModel (batch_t **batches, entity_t *e)
culldist += 4096;
}
else
culldist = 999999999999999f;
culldist = 999999999999999.f;
if (culldist > gl_maxdist.value && gl_maxdist.value>0)
culldist = gl_maxdist.value;
@ -623,8 +623,8 @@ void Terr_DrawTerrainModel (batch_t **batches, entity_t *e)
Terr_InitLightmap(s);
}
s->minh = 9999999999999999f;
s->maxh = -9999999999999999f;
s->minh = 9999999999999999.f;
s->maxh = -9999999999999999.f;
if (!mesh->xyz_array)
{