mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-06 03:22:49 +00:00
rulegen:: fixed hashing in case of incompatible distances
This commit is contained in:
parent
a7149f7054
commit
523f640fa5
@ -1385,7 +1385,7 @@ void examine_branch(int id, int left, int right) {
|
|||||||
if(rl == DIR_RIGHT && rr == DIR_LEFT && lstack.empty() && rstack.empty()) {
|
if(rl == DIR_RIGHT && rr == DIR_LEFT && lstack.empty() && rstack.empty()) {
|
||||||
vector<tsinfo> hash;
|
vector<tsinfo> hash;
|
||||||
push_deadstack(hash, wl, tsl, -1);
|
push_deadstack(hash, wl, tsl, -1);
|
||||||
hash.emplace_back(-1, -1);
|
hash.emplace_back(-1, wl.at->dist - wr.at->dist);
|
||||||
push_deadstack(hash, wr, tsr, +1);
|
push_deadstack(hash, wr, tsr, +1);
|
||||||
// println(hlog, "hash = ", hash);
|
// println(hlog, "hash = ", hash);
|
||||||
if(verified_branches.count(hash)) return;
|
if(verified_branches.count(hash)) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user