1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-11 12:47:39 +00:00

tailored allocation, and increased MAX_EDGE to 14

This commit is contained in:
Zeno Rogue
2018-08-22 00:00:59 +02:00
parent d6a614c854
commit 56c102de94
7 changed files with 65 additions and 25 deletions

View File

@@ -741,7 +741,7 @@ bool buildBarrierNowall(cell *c, eLand l2, int forced_dir) {
bool warpv = warped_version(c->land, l2);
if(warpv && !archimedean && !pseudohept(c)) return false;
int ds[8];
int ds[MAX_EDGE];
for(int i=0; i<c->type; i++) ds[i] = i;
for(int j=0; j<c->type; j++) swap(ds[j], ds[hrand(j+1)]);