1
0
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:
Zeno Rogue
2025-03-14 12:14:16 +01:00
parent 03890caf1e
commit a064c20b94
3 changed files with 44 additions and 42 deletions

View File

@@ -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();
}