From 64f4332b43527ddb642da486d487e28f4958e466 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 20 Jan 2022 13:30:23 -0500 Subject: [PATCH] - add cmath includes to fix the mac compile std::floor errors --- src/maploader/maploader.cpp | 1 + src/rendering/hwrenderer/scene/hw_spritelight.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index 14174a8cd20..a0ef9991b5e 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -59,6 +59,7 @@ #include +#include // needed for std::floor on mac #include "maploader.h" #include "c_cvars.h" #include "actor.h" diff --git a/src/rendering/hwrenderer/scene/hw_spritelight.cpp b/src/rendering/hwrenderer/scene/hw_spritelight.cpp index 71b48688823..8f244999412 100644 --- a/src/rendering/hwrenderer/scene/hw_spritelight.cpp +++ b/src/rendering/hwrenderer/scene/hw_spritelight.cpp @@ -37,6 +37,7 @@ #include "hwrenderer/scene/hw_drawinfo.h" #include "hwrenderer/scene/hw_drawstructs.h" #include "models.h" +#include // needed for std::floor on mac template T smoothstep(const T edge0, const T edge1, const T x)