1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

rulegen:: fixed a bug with generating Camelot root

This commit is contained in:
Zeno Rogue 2021-07-31 14:42:45 +02:00
parent 7fcc4de28b
commit c661290930

View File

@ -1486,10 +1486,11 @@ struct hrmap_rulegen : hrmap {
int psid = hts.sid;
if(firststate == hsOrigin) {
altmap::relspin(alt) = -hts.parent_dir;
alt->s = hsOrigin;
for(auto& ts: treestates) if(ts.sid == psid && ts.is_root) {
alt->fieldval = rule_root;
alt->fieldval = ts.id;
// ts.parent_dir should be 0, but anyway
altmap::relspin(alt) = gmod(ts.parent_dir-hts.parent_dir, isize(hts.rules));
return true;
}
return false;