mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-05 20:07:58 +00:00
moved the RogueViz cleanup system to core HyperRogue
This commit is contained in:
@@ -897,15 +897,6 @@ void init(flagtype _vizflags) {
|
||||
|
||||
int search_for = -1;
|
||||
|
||||
vector<reaction_t> cleanup;
|
||||
|
||||
void do_cleanup() {
|
||||
while(!cleanup.empty()) {
|
||||
cleanup.back()();
|
||||
cleanup.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
void close() {
|
||||
search_for = -1;
|
||||
for(int i=0; i<isize(vdata); i++)
|
||||
@@ -917,7 +908,6 @@ void close() {
|
||||
edgeinfos.clear();
|
||||
callhooks(hooks_close);
|
||||
edgetypes.clear();
|
||||
do_cleanup();
|
||||
relmatrices.clear();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user