Fixes for best waypoint searching and waypoint advance code.
Fixed software renderer true for OSX & Linux. Fixed software renderer is default for OSX & Linux. Fixed GCCs -pedantic warnings.
This commit is contained in:
parent
e3d129e929
commit
1d3910d629
12 changed files with 71 additions and 68 deletions
|
|
@ -20,7 +20,7 @@
|
|||
CR_DECLARE_SCOPED_ENUM (ReservePolicy,
|
||||
Multiple,
|
||||
Single,
|
||||
);
|
||||
)
|
||||
|
||||
CR_NAMESPACE_BEGIN
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ using uint8 = unsigned char;
|
|||
using uint16 = unsigned short;
|
||||
using uint32 = unsigned int;
|
||||
using uint64 = unsigned long long;
|
||||
};
|
||||
}
|
||||
|
||||
// make types available for our own use
|
||||
using namespace cr::types;
|
||||
|
|
@ -114,13 +114,13 @@ public:
|
|||
__VA_ARGS__ \
|
||||
}; \
|
||||
}; \
|
||||
}; \
|
||||
} \
|
||||
CR_NAMESPACE_END \
|
||||
using enumName = ::cr::enums::_##enumName::Type; \
|
||||
|
||||
// same as above, but with int32 type
|
||||
#define CR_DECLARE_SCOPED_ENUM(enumName, ...) \
|
||||
CR_DECLARE_SCOPED_ENUM_TYPE(enumName, int32, __VA_ARGS__); \
|
||||
CR_DECLARE_SCOPED_ENUM_TYPE(enumName, int32, __VA_ARGS__) \
|
||||
|
||||
CR_NAMESPACE_END
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ CR_NAMESPACE_BEGIN
|
|||
namespace types {
|
||||
using StringArray = Array <String>;
|
||||
using IntArray = Array <int>;
|
||||
};
|
||||
}
|
||||
|
||||
using namespace cr::types;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ CR_DECLARE_SCOPED_ENUM (HttpClientResult,
|
|||
Undefined,
|
||||
NoLocalFile = -1,
|
||||
LocalFileExists = -2
|
||||
);
|
||||
)
|
||||
|
||||
CR_NAMESPACE_BEGIN
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ namespace detail {
|
|||
return result;
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// simple http client for downloading/uploading files only
|
||||
class HttpClient final : public Singleton <HttpClient> {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ inline float cosf (const float value) {
|
|||
inline float atanf (const float x) {
|
||||
const float sqr = cr::square (x);
|
||||
return x * (48.70107004404898384f + sqr * (49.5326263772254345f + sqr * 9.40604244231624f)) / (48.70107004404996166f + sqr * (65.7663163908956299f + sqr * (21.587934067020262f + sqr)));
|
||||
};
|
||||
}
|
||||
|
||||
inline float atan2f (const float y, const float x) {
|
||||
const float ax = cr::abs (x);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace detail {
|
|||
template <typename T> struct ClearRef <T &&> {
|
||||
using Type = T;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
template <typename T> typename detail::ClearRef <T>::Type constexpr &&move (T &&type) noexcept {
|
||||
return static_cast <typename detail::ClearRef <T>::Type &&> (type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue