mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-04-28 19:41:23 +00:00
Zebra patterns for some of the new geometries
This commit is contained in:
9
cell.cpp
9
cell.cpp
@@ -968,6 +968,9 @@ int zebra40(cell *c) {
|
||||
else if(ctof(c)) return (c->master->zebraval/10);
|
||||
else if(sphere) return 0;
|
||||
else if(euclid) return eupattern(c);
|
||||
else if(S3 == 4 && S7 == 6) {
|
||||
return 8 + ((c->master->zebraval / 10 + c->spin(0))%2) * 2;
|
||||
}
|
||||
else {
|
||||
int ii[3], z;
|
||||
ii[0] = (c->mov[0]->master->zebraval/10);
|
||||
@@ -1306,12 +1309,6 @@ int getBits(cell *c) {
|
||||
}
|
||||
}
|
||||
|
||||
eLand getCLand(cell *c) {
|
||||
int b = getBits(c);
|
||||
b = (b&31) ^ (b>>5);
|
||||
return land_scape[b & 31];
|
||||
}
|
||||
|
||||
cell *heptatdir(cell *c, int d) {
|
||||
if(d&1) {
|
||||
cell *c2 = createMov(c, d);
|
||||
|
||||
Reference in New Issue
Block a user