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

rulegen:: retry not failure on reaching the end

This commit is contained in:
Zeno Rogue 2021-12-27 13:30:14 +01:00
parent 94e06b3bbf
commit 38f3414828

View File

@ -995,7 +995,8 @@ void extend_analyzer(twalker cwmain, int z, twalker giver) {
for(int i=0;; i++) {
if(i == isize(sub_states) || i == isize(giver_states))
throw rulegen_failure("reached the end");
/* may happen if something changed but not updated */
throw rulegen_retry("reached the end");
if(giver_states[i] != sub_states[i]) {
i--;
while(i != 0) {