mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
rulegen:: on 'reached the end', remove the relevant codes
This commit is contained in:
parent
44e8f31545
commit
0b24804934
@ -1076,9 +1076,16 @@ void extend_analyzer(twalker cwmain, int z, twalker giver) {
|
|||||||
vector<int> idlist;
|
vector<int> idlist;
|
||||||
|
|
||||||
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)) {
|
||||||
/* may happen if something changed but not updated */
|
/* may happen if something changed but not updated */
|
||||||
|
|
||||||
|
cwmain.at->code = MYSTERY_LARGE;
|
||||||
|
giver.at->code = MYSTERY_LARGE;
|
||||||
|
(cwmain+z+wstep).at->code = MYSTERY_LARGE;
|
||||||
|
(giver+z+wstep).at->code = MYSTERY_LARGE;
|
||||||
|
|
||||||
throw rulegen_retry("reached the end");
|
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…
Reference in New Issue
Block a user