1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 03:54:47 +00:00

rulegen:: in find_new_shortcuts don't find subshortcuts

This commit is contained in:
Zeno Rogue 2021-08-19 13:14:15 +02:00
parent cd52fe35b2
commit 5e249ba4f4

View File

@ -401,6 +401,7 @@ EX void find_new_shortcuts(tcell *c, int d, tcell *alt, int delta) {
walkers2.push_back(twalker(alt, delta)); walkers2.push_back(twalker(alt, delta));
for(int j=0; j<isize(walkers2); j++) { for(int j=0; j<isize(walkers2); j++) {
auto w = walkers2[j]; auto w = walkers2[j];
if(!seen.count(w.at))
for(int s=0; s<w.at->type; s++) { for(int s=0; s<w.at->type; s++) {
twalker w1 = w + s; twalker w1 = w + s;
if(!w1.peek()) continue; if(!w1.peek()) continue;