mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-10 02:14:06 +00:00
constants are not static const not constexpr as older compilers do not like it
This commit is contained in:
parent
e53f61a8be
commit
9b014ab824
@ -13,11 +13,11 @@
|
|||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
constexpr ld full_circle = 2 * M_PI;
|
static const ld full_circle = 2 * M_PI;
|
||||||
constexpr ld quarter_circle = M_PI / 2;
|
static const ld quarter_circle = M_PI / 2;
|
||||||
static const ld degree = M_PI / 180;
|
static const ld degree = M_PI / 180;
|
||||||
constexpr ld golden_phi = (sqrt(5)+1)/2;
|
static const ld golden_phi = (sqrt(5)+1)/2;
|
||||||
constexpr ld log_golden_phi = log(golden_phi);
|
static const ld log_golden_phi = log(golden_phi);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
eGeometry geometry;
|
eGeometry geometry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user