Changes to work with Mac
Changes include: - Updating Project - fixing sendto declaration - Fixed some bugs in #if Mac sections - Removed unneeded #includes (my compiler didn’t like them)
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <cmath>
|
||||
#include <unordered_map>
|
||||
|
||||
using namespace std;
|
||||
namespace XPC
|
||||
{
|
||||
static std::unordered_map<DREF, XPLMDataRef> drefs;
|
||||
@@ -542,8 +543,8 @@ namespace XPC
|
||||
Log::WriteLine("[FLAP] ERROR: Value must be a number (NaN received)");
|
||||
return;
|
||||
}
|
||||
value = max(value, 0);
|
||||
value = min(value, 1);
|
||||
value = fmaxl(value, 0);
|
||||
value = fminl(value, 1);
|
||||
|
||||
Set(DREF::FlapSetting, value);
|
||||
Set(DREF::FlapActual, value);
|
||||
|
||||
Reference in New Issue
Block a user