mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 10:44:48 +00:00
fixes for older compilers
This commit is contained in:
parent
443ba65730
commit
ecc6908807
@ -43,13 +43,19 @@ eVariation variation;
|
||||
*
|
||||
*/
|
||||
|
||||
#if ISSTEAM && ISLINUX
|
||||
#define ONLY_STEAMLINUX(x) x
|
||||
#else
|
||||
#define ONLY_STEAMLINUX(x)
|
||||
#endif
|
||||
|
||||
struct hyperpoint : array<ld, MAXMDIM> {
|
||||
hyperpoint() {}
|
||||
|
||||
#if MAXMDIM == 4
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> {{x, y, z, w}} {
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_STEAMLINUX((array<ld, MAXMDIM>)) {x, y, z, w}} {
|
||||
#else
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> {{x, y, z}} {
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_STEAMLINUX((array<ld, MAXMDIM>)) {x, y, z}} {
|
||||
#endif
|
||||
// self[0] = x; self[1] = y; self[2] = z;
|
||||
// if(MAXMDIM == 4) self[3] = w;
|
||||
|
@ -986,7 +986,7 @@ EX namespace slr {
|
||||
if(phi < 0) { find_alpha(-phi, r, -theta, alpha, s, beta); alpha = -alpha; beta = -beta; return; }
|
||||
ld mina = 0, maxa = M_PI/2;
|
||||
|
||||
bool next_nan;
|
||||
bool next_nan = true;
|
||||
ld c;
|
||||
|
||||
for(int it=0; it<40; it++) {
|
||||
|
Loading…
Reference in New Issue
Block a user