mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
rulegen:: some weird stuff
This commit is contained in:
parent
25c636c54a
commit
74bf728b84
@ -727,6 +727,7 @@ EX int get_parent_dir(tcell *c) {
|
||||
}
|
||||
|
||||
if(bestd == -1) {
|
||||
debuglist = { c };
|
||||
throw rulegen_failure("should not happen");
|
||||
}
|
||||
}
|
||||
@ -1304,6 +1305,7 @@ void push_deadstack(vector<tsinfo>& hash, twalker w, tsinfo tsi, int dir) {
|
||||
hash.push_back(tsi);
|
||||
}
|
||||
else {
|
||||
if(ts.rules.empty()) throw rulegen_retry("empty rule");
|
||||
int r = ts.rules[tsi.second];
|
||||
if(r > 0 && treestates[r].is_live) return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user