diff --git a/rulegen.cpp b/rulegen.cpp index 6c046b8c..2dfee1cc 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -867,7 +867,7 @@ code_t id_at_spin(twalker cw) { map code_to_id; EX pair get_code(tcell *c) { - if(c->code != MYSTERY) { + if(c->code != MYSTERY && c->parent_dir != MYSTERY) { int bestd = c->parent_dir; if(bestd == -1) bestd = 0; return {bestd, c->code};