mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-11 22:18:16 +00:00
fix: equivolume
This commit is contained in:
parent
10fd8a41b7
commit
6044095228
6
hyper.h
6
hyper.h
@ -21,6 +21,9 @@ void ignore(T&&) {
|
|||||||
// placate GCC's overzealous -Wunused-result
|
// placate GCC's overzealous -Wunused-result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T, class V, class... U> bool among(T x, V y) { return x == y; }
|
||||||
|
template<class T, class V, class... U> bool among(T x, V y, U... u) { return x==y || among(x,u...); }
|
||||||
|
|
||||||
// functions and types used from the standard library
|
// functions and types used from the standard library
|
||||||
using std::vector;
|
using std::vector;
|
||||||
using std::map;
|
using std::map;
|
||||||
@ -2481,9 +2484,6 @@ void pushThumper(cell *th, cell *cto);
|
|||||||
|
|
||||||
template<class T, class... U> T pick(T x, U... u) { std::initializer_list<T> i = {x,u...}; return *(i.begin() + hrand(1+sizeof...(u))); }
|
template<class T, class... U> T pick(T x, U... u) { std::initializer_list<T> i = {x,u...}; return *(i.begin() + hrand(1+sizeof...(u))); }
|
||||||
|
|
||||||
template<class T, class V, class... U> bool among(T x, V y) { return x == y; }
|
|
||||||
template<class T, class V, class... U> bool among(T x, V y, U... u) { return x==y || among(x,u...); }
|
|
||||||
|
|
||||||
eLand getNewSealand(eLand old);
|
eLand getNewSealand(eLand old);
|
||||||
bool createOnSea(eLand old);
|
bool createOnSea(eLand old);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user