1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

product:: using precomputed windmap

This commit is contained in:
Zeno Rogue 2019-08-19 13:54:39 +02:00
parent 78cbec039b
commit 1778fd5d8e

View File

@ -3414,7 +3414,7 @@ EX namespace windmap {
if(N == 18920) precomp = windcodes18920;
if(N == 5676) precomp = windcodes5676;
if(precomp && hyperbolic && isize(currfp.matrices)) {
if(precomp && (hyperbolic || prod) && isize(currfp.matrices)) {
int randval = hrand(isize(currfp.matrices));
for(int i=0; i<N; i++)
windcodes[i] = precomp[getid[fieldpattern::fieldval_uniq_rand(samples[i].at, randval)]-1];