rulegen:: set C_CHILD for id==0

This commit is contained in:
Zeno Rogue committed 2021-08-17 14:24:58 +02:00
1 parent 85acd05ee7
commit e0db5d8f6a
1 file changed
+1
+1
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)