mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
CalcSurfaceExtents: adjust bogus initial "max" texture coord to match the
magnitude of the "min" one. It was possible to erroneously cause a "bad surface extents" error with face around +/- 100K units from the origin, since "max" was initalized to -99999. TODO: These should probably both be changed to FLT_MAX/-FLT_MAX. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1608 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
c04be89a90
commit
68faa57c6d
1 changed files with 1 additions and 1 deletions
|
@ -998,7 +998,7 @@ void CalcSurfaceExtents (msurface_t *s)
|
|||
int bmins[2], bmaxs[2];
|
||||
|
||||
mins[0] = mins[1] = 999999;
|
||||
maxs[0] = maxs[1] = -99999;
|
||||
maxs[0] = maxs[1] = -999999; // FIXME: change these two to FLT_MAX/-FLT_MAX
|
||||
|
||||
tex = s->texinfo;
|
||||
|
||||
|
|
Loading…
Reference in a new issue