From ddf3d5213d6b97fbf09cce2c9f8ade2daa99b028 Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Tue, 10 May 2016 03:08:36 +0000 Subject: [PATCH] FLT_MAX -> std::numeric_limits::max() --- Src/Graphics/New3D/New3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Graphics/New3D/New3D.cpp b/Src/Graphics/New3D/New3D.cpp index 1c338fb..f3a857b 100644 --- a/Src/Graphics/New3D/New3D.cpp +++ b/Src/Graphics/New3D/New3D.cpp @@ -4,6 +4,7 @@ #include "Vec.h" #include // needed by gcc #include +#include #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::max(); + float max = -std::numeric_limits::max(); if (!offset[i]) continue;