mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: common: fixed lightmap shift again
This commit is contained in:
parent
9047fe2e74
commit
edc171be04
@ -1020,8 +1020,10 @@ Fills in surf->texturemins[] and surf->extents[]
|
||||
*/
|
||||
static void Mod_CalcSurfaceExtents( msurface_t *surf )
|
||||
{
|
||||
double mins[2], maxs[2], val;
|
||||
double lmmins[2], lmmaxs[2];
|
||||
// this place is VERY critical to precision
|
||||
// keep it as float, don't use double, because it causes issues with lightmap
|
||||
float mins[2], maxs[2], val;
|
||||
float lmmins[2], lmmaxs[2];
|
||||
int bmins[2], bmaxs[2];
|
||||
int i, j, e, sample_size;
|
||||
mextrasurf_t *info = surf->info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user