mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
reg3:: subcubes:: testing_subconnections flag; made it faster if it is off
This commit is contained in:
parent
45bdbdbbcc
commit
49adf19da2
10
reg3.cpp
10
reg3.cpp
@ -601,6 +601,8 @@ EX namespace reg3 {
|
||||
}
|
||||
}
|
||||
|
||||
const static bool testing_subconnections = false;
|
||||
|
||||
void hrmap_closed3::make_subconnections() {
|
||||
auto& ss = cgi.subshapes;
|
||||
|
||||
@ -701,13 +703,19 @@ EX namespace reg3 {
|
||||
found++;
|
||||
}
|
||||
}
|
||||
if(found && !testing_subconnections) break;
|
||||
}
|
||||
if(testing_subconnections && !found) {
|
||||
c->c.connect(i, c, i, false);
|
||||
tmcell.push_back(Id);
|
||||
}
|
||||
foundtab.push_back(found);
|
||||
if(found != 1) failures++;
|
||||
}
|
||||
if(testing_subconnections) println(hlog, "foundtab = ", foundtab);
|
||||
}
|
||||
println(hlog, "total failures = ", failures);
|
||||
if(failures) throw hr_exception("hrmap_closed3 failures");
|
||||
if(failures && !testing_subconnections) throw hr_exception("hrmap_closed3 failures");
|
||||
}
|
||||
|
||||
transmatrix hrmap_closed3::relative_matrix(cell *c2, cell *c1, const hyperpoint& hint) {
|
||||
|
Loading…
Reference in New Issue
Block a user