1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

rulegen:: some weird stuff

This commit is contained in:
Zeno Rogue 2021-08-24 03:37:09 +02:00
parent 25c636c54a
commit 74bf728b84

View File

@ -727,6 +727,7 @@ EX int get_parent_dir(tcell *c) {
} }
if(bestd == -1) { if(bestd == -1) {
debuglist = { c };
throw rulegen_failure("should not happen"); 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); hash.push_back(tsi);
} }
else { else {
if(ts.rules.empty()) throw rulegen_retry("empty rule");
int r = ts.rules[tsi.second]; int r = ts.rules[tsi.second];
if(r > 0 && treestates[r].is_live) return; if(r > 0 && treestates[r].is_live) return;
} }