1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

rulegen:: set C_CHILD for id==0

This commit is contained in:
Zeno Rogue 2021-08-17 14:24:58 +02:00
parent 85acd05ee7
commit e0db5d8f6a

View File

@ -820,6 +820,7 @@ code_t id_at_spin(twalker cw) {
if(pid > -1 && (res.second[pid] != C_CHILD)) {
x = C_IGNORE;
}
else if(id == 0) x = C_CHILD;
else {
int p = get_parent_dir(cs.at);
if(p >= 0 && get_parent_dir(cs.at) == cs.spin)