mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-01-02 18:29:03 +00:00
Fixed the bugs with computing fieldpattern not in hyperbolic geometry (memory error + canvas crashes)
This commit is contained in:
@@ -3087,7 +3087,7 @@ namespace windmap {
|
||||
if(N == 18920) precomp = windcodes18920;
|
||||
if(N == 5676) precomp = windcodes5676;
|
||||
|
||||
if(precomp && size(currfp.matrices)) {
|
||||
if(precomp && hyperbolic && size(currfp.matrices)) {
|
||||
int randval = hrand(size(currfp.matrices));
|
||||
for(int i=0; i<N; i++)
|
||||
windcodes[i] = precomp[getid[fieldpattern::fieldval_uniq_rand(samples[i], randval)]-1];
|
||||
|
||||
Reference in New Issue
Block a user