1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

rulegen:: fixed hashing in case of incompatible distances

This commit is contained in:
Zeno Rogue 2021-11-01 17:20:08 +01:00
parent a7149f7054
commit 523f640fa5

View File

@ -1385,7 +1385,7 @@ void examine_branch(int id, int left, int right) {
if(rl == DIR_RIGHT && rr == DIR_LEFT && lstack.empty() && rstack.empty()) {
vector<tsinfo> hash;
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);
// println(hlog, "hash = ", hash);
if(verified_branches.count(hash)) return;