mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
FLT_MAX -> std::numeric_limits<float>::max()
This commit is contained in:
parent
8c082abab9
commit
ddf3d5213d
|
@ -4,6 +4,7 @@
|
|||
#include "Vec.h"
|
||||
#include <cmath> // needed by gcc
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
#define MAX_RAM_POLYS 100000
|
||||
#define MAX_ROM_POLYS 500000
|
||||
|
@ -800,8 +801,8 @@ void CNew3D::OffsetTexCoords(R3DPoly& r3dPoly, float offset[2])
|
|||
{
|
||||
for (int i = 0; i < 2; i++) {
|
||||
|
||||
float min = FLT_MAX;
|
||||
float max = -FLT_MAX;
|
||||
float min = std::numeric_limits<float>::max();
|
||||
float max = -std::numeric_limits<float>::max();
|
||||
|
||||
if (!offset[i]) continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue