1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-26 07:03:19 +00:00
This commit is contained in:
Zeno Rogue 2017-11-06 19:29:02 +01:00
parent a14cced41d
commit a99e413f25
2 changed files with 4 additions and 4 deletions

View File

@ -221,7 +221,7 @@ namespace torusconfig {
// values as the default -- otherwise the three-color // values as the default -- otherwise the three-color
// pattern breaks. Also, they should have no common // pattern breaks. Also, they should have no common
// prime divisor. // prime divisor.
int qty = 127*3, dx = -1, dy = 11*2; int qty = 127*3, dx = 1, dy = -11*2;
} }
int decodeId(heptagon* h); int decodeId(heptagon* h);
@ -724,7 +724,7 @@ void verifycells(heptagon *at) {
} }
int eupattern(cell *c) { int eupattern(cell *c) {
if(torus) return decodeId(c->master) % 3; if(torus) return (decodeId(c->master)*2) % 3;
eucoord x, y; eucoord x, y;
decodeMaster(c->master, x, y); decodeMaster(c->master, x, y);
short z = (short(y+2*x))%3; short z = (short(y+2*x))%3;

View File

@ -1002,8 +1002,8 @@ void giantLandSwitch(cell *c, int d, cell *from) {
if(torus) { if(torus) {
int pid = decodeId(c->master); int pid = decodeId(c->master);
if(pid == 381/3) c->wall = waCharged; if(pid == torusconfig::qty/3) c->wall = waCharged;
if(pid == 381*2/3) c->wall = waGrounded; if(pid == torusconfig::qty*2/3) c->wall = waGrounded;
} }
else if(euclid) { else if(euclid) {
eucoord x, y; eucoord x, y;