1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

rulegen:: clear codes on neg rule mismatch

This commit is contained in:
Zeno Rogue 2022-08-17 17:33:52 +02:00
parent ecee5b7f21
commit 47d2b5b27b

View File

@ -1526,6 +1526,8 @@ EX void rules_iteration_for(twalker& cw) {
if(r[z] == cids[z]) continue; if(r[z] == cids[z]) continue;
if(r[z] < 0 || cids[z] < 0) { if(r[z] < 0 || cids[z] < 0) {
debuglist = { cwmain, ts.giver }; debuglist = { cwmain, ts.giver };
cwmain.at->code = MYSTERY_LARGE;
ts.giver.at->code = MYSTERY_LARGE;
throw rulegen_retry("neg rule mismatch"); throw rulegen_retry("neg rule mismatch");
} }