mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-27 23:42:53 +00:00
rulegen:: retry not failure on reaching the end
This commit is contained in:
parent
94e06b3bbf
commit
38f3414828
@ -995,7 +995,8 @@ void extend_analyzer(twalker cwmain, int z, twalker giver) {
|
|||||||
|
|
||||||
for(int i=0;; i++) {
|
for(int i=0;; i++) {
|
||||||
if(i == isize(sub_states) || i == isize(giver_states))
|
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]) {
|
if(giver_states[i] != sub_states[i]) {
|
||||||
i--;
|
i--;
|
||||||
while(i != 0) {
|
while(i != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user