mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 10:27:45 +00:00
array initializer did not compile on Steam
This commit is contained in:
@@ -13,7 +13,7 @@ EX namespace euc {
|
||||
#if HDR
|
||||
struct coord : array<int, 3> {
|
||||
explicit coord() = default;
|
||||
constexpr explicit coord(int x, int y, int z) : array{x,y,z} {}
|
||||
constexpr explicit coord(int x, int y, int z) : array<int,3> {{x,y,z}} {}
|
||||
coord& operator += (coord b) { for(int i: {0,1,2}) self[i] += b[i]; return self; }
|
||||
coord& operator -= (coord b) { for(int i: {0,1,2}) self[i] -= b[i]; return self; }
|
||||
coord operator + (coord b) const { coord a = self; return a += b; }
|
||||
|
||||
Reference in New Issue
Block a user