mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
set dx=1
This commit is contained in:
parent
a14cced41d
commit
a99e413f25
4
cell.cpp
4
cell.cpp
@ -221,7 +221,7 @@ namespace torusconfig {
|
||||
// values as the default -- otherwise the three-color
|
||||
// pattern breaks. Also, they should have no common
|
||||
// prime divisor.
|
||||
int qty = 127*3, dx = -1, dy = 11*2;
|
||||
int qty = 127*3, dx = 1, dy = -11*2;
|
||||
}
|
||||
|
||||
int decodeId(heptagon* h);
|
||||
@ -724,7 +724,7 @@ void verifycells(heptagon *at) {
|
||||
}
|
||||
|
||||
int eupattern(cell *c) {
|
||||
if(torus) return decodeId(c->master) % 3;
|
||||
if(torus) return (decodeId(c->master)*2) % 3;
|
||||
eucoord x, y;
|
||||
decodeMaster(c->master, x, y);
|
||||
short z = (short(y+2*x))%3;
|
||||
|
@ -1002,8 +1002,8 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
||||
|
||||
if(torus) {
|
||||
int pid = decodeId(c->master);
|
||||
if(pid == 381/3) c->wall = waCharged;
|
||||
if(pid == 381*2/3) c->wall = waGrounded;
|
||||
if(pid == torusconfig::qty/3) c->wall = waCharged;
|
||||
if(pid == torusconfig::qty*2/3) c->wall = waGrounded;
|
||||
}
|
||||
else if(euclid) {
|
||||
eucoord x, y;
|
||||
|
Loading…
Reference in New Issue
Block a user