1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-18 07:51:22 +00:00

removed the MAX_EDGE limit

This commit is contained in:
Zeno Rogue
2020-01-18 16:03:32 +01:00
parent a6da5ded75
commit 2271a67506
24 changed files with 238 additions and 190 deletions

View File

@@ -85,7 +85,7 @@ EX namespace gp {
transmatrix adjm;
};
EX int fixg6(int x) { return (x + MODFIXER) % SG6; }
EX int fixg6(int x) { return gmod(x, SG6); }
EX int get_code(const local_info& li) {
return
@@ -137,7 +137,7 @@ EX namespace gp {
EX int pseudohept_val(cell *c) {
loc v = get_coord(c);
return (v.first - v.second + MODFIXER)%3;
return gmod(v.first - v.second, 3);
}
// mapping of the local equilateral triangle
@@ -578,6 +578,7 @@ EX namespace gp {
loctoh_ort(param * loc(0,1)),
C03
));
cgi.gpdata->Tf.resize(S7);
for(int i=0; i<S7; i++) {
transmatrix T = dir_matrix(i);
for(int x=-16; x<16; x++)