mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-19 14:54:07 +00:00
rulegen:: fixed cleanups
This commit is contained in:
parent
410d5c3015
commit
9787b3e52d
@ -1655,11 +1655,6 @@ bool need_clear_codes;
|
|||||||
|
|
||||||
void clear_codes() {
|
void clear_codes() {
|
||||||
need_clear_codes = false;
|
need_clear_codes = false;
|
||||||
auto c = first_tcell;
|
|
||||||
while(c) {
|
|
||||||
c->code = MYSTERY;
|
|
||||||
c = c->next;
|
|
||||||
}
|
|
||||||
for(auto a: all_analyzers) {
|
for(auto a: all_analyzers) {
|
||||||
for(auto tw: a->inhabitants) tw.at->code = MYSTERY_LARGE;
|
for(auto tw: a->inhabitants) tw.at->code = MYSTERY_LARGE;
|
||||||
a->inhabitants.clear();
|
a->inhabitants.clear();
|
||||||
@ -1688,6 +1683,7 @@ void find_single_live_branch(twalker& at) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void clean_analyzers() {
|
EX void clean_analyzers() {
|
||||||
|
for(auto a: all_analyzers) for(auto tw: a->inhabitants) tw.at->code = MYSTERY_LARGE;
|
||||||
for(auto a: all_analyzers) delete a;
|
for(auto a: all_analyzers) delete a;
|
||||||
for(auto& av: analyzers) for(auto& a: av) a = nullptr;
|
for(auto& av: analyzers) for(auto& a: av) a = nullptr;
|
||||||
all_analyzers.clear();
|
all_analyzers.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user