mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
rulegen:: fixed a bug with generating Camelot root
This commit is contained in:
parent
7fcc4de28b
commit
c661290930
@ -1486,10 +1486,11 @@ struct hrmap_rulegen : hrmap {
|
|||||||
int psid = hts.sid;
|
int psid = hts.sid;
|
||||||
|
|
||||||
if(firststate == hsOrigin) {
|
if(firststate == hsOrigin) {
|
||||||
altmap::relspin(alt) = -hts.parent_dir;
|
|
||||||
alt->s = hsOrigin;
|
alt->s = hsOrigin;
|
||||||
for(auto& ts: treestates) if(ts.sid == psid && ts.is_root) {
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user