1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

converted wrongcode from rulegen_failure to rulegen_retry

This commit is contained in:
Zeno Rogue 2021-08-19 13:22:31 +02:00
parent 0ed4b8f367
commit e80782be87

View File

@ -1392,7 +1392,7 @@ EX void rules_iteration() {
if(val < 2 || val >= 8) { if(val < 2 || val >= 8) {
debuglist = { treestates[id].giver }; debuglist = { treestates[id].giver };
println(hlog, "id = ", id, " i = ", i, " val = ", val, " code = ", treestates[id].code); println(hlog, "id = ", id, " i = ", i, " val = ", val, " code = ", treestates[id].code);
throw rulegen_failure("wrong code in gen_rule"); throw rulegen_retry("wrong code in gen_rule");
} }
r[i] = ((val & 1) ? DIR_RIGHT : DIR_LEFT); r[i] = ((val & 1) ? DIR_RIGHT : DIR_LEFT);
} }