mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-05-08 16:12:06 +00:00
backed-map:: precision policy 'random' implemented
This commit is contained in:
+2
-1
@@ -792,7 +792,8 @@ struct hrmap_archimedean : hrmap {
|
||||
void find_cell_connection(cell *c, int d) override {
|
||||
if(PURE) {
|
||||
if(arcm::id_of(c->master) < arcm::current.N * 2) {
|
||||
heptspin hs = heptspin(c->master, d) + wstep + 2 + wstep + 1;
|
||||
bool rev = (precision_policy & 1) && hrand(2);
|
||||
heptspin hs = rev ? heptspin(c->master, d) - 1 + wstep - 2 + wstep: heptspin(c->master, d) + wstep + 2 + wstep + 1;
|
||||
c->c.connect(d, hs.at->c7, hs.spin, hs.mirrored);
|
||||
}
|
||||
else c->c.connect(d, c, d, false);
|
||||
|
||||
Reference in New Issue
Block a user