mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix compile error due to usage of undefined FLT_MAX.
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
#include "audio/Source.h"
|
||||
#include "audio/Filter.h"
|
||||
|
||||
// STL
|
||||
#include <limits>
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace audio
|
||||
@@ -107,7 +110,7 @@ private:
|
||||
float maxVolume = 1.0f;
|
||||
float referenceDistance = 1.0f;
|
||||
float rolloffFactor = 1.0f;
|
||||
float maxDistance = FLT_MAX;
|
||||
float maxDistance = std::numeric_limits<float>::max();
|
||||
float absorptionFactor = 0.0f;
|
||||
|
||||
}; // Source
|
||||
|
||||
Reference in New Issue
Block a user