mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-25 23:40:09 +00:00
rulegen:: perform get_code if code is given but no parent_dir
This commit is contained in:
parent
57dffb8af9
commit
858fd61794
@ -867,7 +867,7 @@ code_t id_at_spin(twalker cw) {
|
|||||||
map<code_t, int> code_to_id;
|
map<code_t, int> code_to_id;
|
||||||
|
|
||||||
EX pair<int, int> get_code(tcell *c) {
|
EX pair<int, int> get_code(tcell *c) {
|
||||||
if(c->code != MYSTERY) {
|
if(c->code != MYSTERY && c->parent_dir != MYSTERY) {
|
||||||
int bestd = c->parent_dir;
|
int bestd = c->parent_dir;
|
||||||
if(bestd == -1) bestd = 0;
|
if(bestd == -1) bestd = 0;
|
||||||
return {bestd, c->code};
|
return {bestd, c->code};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user