1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 06:50:27 +00:00

added kz(vector)

This commit is contained in:
Zeno Rogue 2020-05-08 20:26:23 +02:00
parent 2333537f11
commit 3a8a3cf035

View File

@ -371,6 +371,13 @@ EX transmatrix kz(transmatrix h) {
return h;
}
#if HDR
template<class T> vector<T> kz(vector<T> v) {
for(auto& el: v) el = kz(el);
return v;
}
#endif
EX string pick123() { return cts('1' + rand() % 3); }
EX string pick12() { return cts('1' + rand() % 2); }